sbt command cheat sheet

You can chain several commands together using space as the delimeter e.g.sbt clean reload compile run .

CommandAction
cleanDeletes all generated files (in the target directory).
reloadTell sbt to check the build.sbt and plugins file and reload the build definition.
compileGenerate the bytecode.
runExecute the bytecode.
packageBuild JAR file. It may have the dependecies problem running with java.
assemblyBuild fat JAR file fully compatible with java external dependencies. Need to add sbt-assembly plugins before running.
consoleLaunch repl console.
testRun test.