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