Skip to content

CLI Reference

All Trigger.dev CLI commands.

Installation

The CLI is used via npx (no install required):

bash
npx trigger.dev@latest <command>

Or install locally in your project:

bash
npm install --save-dev trigger.dev

Commands

CommandDescription
initInitialize Trigger.dev in your project
devRun tasks locally
deployDeploy tasks to Trigger.dev
loginAuthenticate with Trigger.dev
logoutRemove stored credentials
whoamiShow current authenticated user
list-profilesList all configured profiles
switchSwitch between profiles
updateUpdate Trigger.dev packages

Authentication

bash
npx trigger.dev login    # Authenticate (opens browser)
npx trigger.dev whoami   # Verify current user
npx trigger.dev logout   # Remove credentials

Built from official Trigger.dev documentation