Command-line tools

The command-line tools are supplied to enable scripted usage of the Forge build service. For normal usage, it is expected that the Toolkit will be easier and more powerful.

There are five main commands when using

  • forge create
  • forge build
  • forge serve
  • forge run
  • forge package

Reload has a number of commands which can be run from the command line:

  • forge reload list
  • forge reload create
  • forge reload push

These are explained in more detail in Using Reload.

There are also some additional commands which may be used:

  • forge check: Perform some sanity checks on the app, including parsing the JavaScript to check for syntax errors.

Run any command with the --help argument to see more information about the particular command.

Note: All commands can be run with the --verbose parameter, to enable the display of more output.

Location of forge executable

To run forge commands use the forge executable in your Toolkit installation:


C:\> "C:\Users\<Your Username>\AppData\Local\Trigger Toolkit\forge.exe"

Mac users

$ $HOME/Library/Trigger\ Toolkit/forge

Linux users

$ ~/TriggerToolkit/forge

Command-line parameters

Parameters to the forge commands can be given as command-line options, or stored in a file.

Command-line options are dot-separated names, like --android.sdk /path/to/android-sdk.

A complete list of command-line options, is given in Available Forge Parameters.