An activator is not a tool that has several broad capabilities. Seems like it is just a wrapper to run the sbt project. On the activator source page in git:
Activator aims to become a friendly one-stop shop for downloading your Scala, Akka and Play. It can be used as a wrapper script that runs in the traditional sbt command line, but also includes a template and a training system, as well as an additional graphical interface to get started.
You can think of the activator as a traditional sbt (activator shell or activator) plus an additional user interface mode (ui activator), plus a template system (new activator).
It's all. In fact, only four teams:
- ui - start ui mode
- new - to create a new project from the template
- list-templates - show all available templates
- shell - to start the sbt shell
Look at it in detail.
Source
https://github.com/typesafehub/activator/blob/master/launcher/src/main/scala/activator/ActivatorLauncher.scala
try configuration.arguments match { case Array("ui") => RebootToUI(configuration, version = checkForUpdatedVersion.getOrElse(APP_VERSION)) case Array("new", _*) => Exit(ActivatorCli(configuration)) case Array("list-templates") => Exit(TemplateHandler()) case Array("shell") => RebootToSbt(configuration, useArguments = false) case _ if Sbt.looksLikeAProject(new File(".")) => RebootToSbt(configuration, useArguments = true) case _ => displayHelp(configuration) } catch { case e: Exception => generateErrorReport(e) }
You can see that there are only 4 commands: ui, new, list-template, shell and one meta command:
case _ if Sbt.looksLikeAProject(new File(".")) => RebootToSbt(configuration, useArguments = true)
This means that if you run the activator command in the project directory (and this is not ui , new , list-template , shell ), the activator will launch sbt with the command and argument that you pass to the activator. Thus, run , compile , stage are not activator commands, but sbt commands.
If you run the activator not in the project directory (and this is not ui , new , list-template , shell ), then it will show you some "help page"
The activator also allows you to pass java arguments that will be used to start the .jar activator - you can see it by checking the "activator.bat" file or the activator shell script.
SBT
You can find the sbt command link here: http://www.scala-sbt.org/0.13/docs/Command-Line-Reference.html