# How to rename a module?

  1. define a new module with the new name and new package(if need be) in .ksmile file.
  2. enter sbt shell, run command smile
  3. copy the content of the old k file to new k file, fix errors in kfiles for the inward dependencies (if any).
  4. run command compile
  5. copy the content of old module i.e. LifeCycle, Object and Binder(if any)
  6. copy the folder of the src/package/<folders> from the old module to new module (ex: commandset,domainlogic etc)
  7. If package name changed then fix all individual files package name
  8. run command compile
  9. change .ksmile module dependencies from the old module to new module
  10. run command smile
  11. run command compile
  12. delete the old module using command delete-module <old-module-name>