About

Sbt is a build tool for Scala

Task

Console

You can start the Scala interpreter inside sbt using the console task.

$ sbt
> console
[info] Updating {file:/C:/Users/gerard/}gerard...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_79).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

Compile

$ cd project/Path
$ sbt
> compile

Test

$ cd project/Path
$ sbt
> test

Run

If your project has an object with a main method (or an object extending the trait App), then you can run the code in sbt easily by typing run.

$ cd project/Path
$ sbt
> run

Idea

Scala Sbt Based Project

Documentation / Reference