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.devCommands
| Command | Description |
|---|---|
init | Initialize Trigger.dev in your project |
dev | Run tasks locally |
deploy | Deploy tasks to Trigger.dev |
login | Authenticate with Trigger.dev |
logout | Remove stored credentials |
whoami | Show current authenticated user |
list-profiles | List all configured profiles |
switch | Switch between profiles |
update | Update 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