Trigger.io

Trigger.io Forge Documentation

Important

This documentation is deprecated, and only kept here to support users of browser extension APIs. If you are using Trigger.io for iOS or Android, see https://trigger.io/docs/.

Command-line tools

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

There are four main commands when using Trigger.io:

  • forge create
  • forge build
  • 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 Trigger.io 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.
  • forge migrate: Migrate to the next version of Forge, you will be prompted to run this when it is available.

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:

Windows

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.