# How to force compile a SMILE project?
Enter sbt shell, run command
prepareForceoptional: precede with command
cleanto clean the src-gen filesrun command
generateForcerun command
compile
Here are 3 ways to achieve the same:
[Lottery] $ clean #optional
[Lottery] $ prepareForce
[Lottery] $ generateForce
[Lottery] $ compile
or
[Lottery] $ clean; prepareForce; generateForce; compile
or
[Lottery] $ clean-compile