CLI runs commands
Use these commands to list, inspect, replay and cancel runs from your terminal.
runs list
Lists runs, newest first, in a table of ID, task, status, version, created time and duration.
npx trigger.dev@latest runs listpnpm dlx trigger.dev@latest runs listyarn dlx trigger.dev@latest runs listThe number of runs to list, up to 100. Defaults to 20.
Only show runs with this status, e.g. FAILED.
Only show runs for this task identifier.
Only show runs with this tag.
The pagination cursor printed at the end of the previous page.
runs get
Prints the status, version, tags, timings, duration, cost and error of a single run.
npx trigger.dev@latest runs get run_abc123pnpm dlx trigger.dev@latest runs get run_abc123yarn dlx trigger.dev@latest runs get run_abc123bunx trigger.dev@latest runs get run_abc123runs replay
Triggers a new run with the same payload as an existing one, using the latest version of the task.
npx trigger.dev@latest runs replay run_abc123pnpm dlx trigger.dev@latest runs replay run_abc123yarn dlx trigger.dev@latest runs replay run_abc123bunx trigger.dev@latest runs replay run_abc123runs cancel
Cancels a run that has not finished yet. You are asked to confirm first.
npx trigger.dev@latest runs cancel run_abc123pnpm dlx trigger.dev@latest runs cancel run_abc123yarn dlx trigger.dev@latest runs cancel run_abc123bunx trigger.dev@latest runs cancel run_abc123Cancel without the confirmation prompt. Required in non-interactive environments such as CI.
Options
The environment to use: dev, prod, staging or preview. Defaults to prod.
The name of the config file found at the project path. Defaults to trigger.config.ts
The project ref. Required if there is no config file.
Required when using --env preview. Specify the branch, e.g. --branch my-branch or -b my-branch. With --env dev, it defaults to the same dev branch as the dev command.
Common options
These options are available on most commands.
The login profile to use. Defaults to the current profile, which is set by your last login or switch (initially "default").
Override the default API URL. If not specified, it uses https://api.trigger.dev. This can also be set via the TRIGGER_API_URL environment variable.
The CLI log level to use. Options are debug, info, log, warn, error, and none. This does not affect the log level of your trigger.dev tasks. Defaults to log.
Opt-out of sending telemetry data. This can also be done via the TRIGGER_TELEMETRY_DISABLED environment variable. Just set it to anything other than an empty string.
Shows the help information for the command.
Displays the version number of the CLI.
Was this page helpful?
Last updated
Edit on GitHub