Skip to content

trigger.dev deploy

Deploy your tasks to Trigger.dev Cloud or self-hosted instance.

Usage

bash
npx trigger.dev@latest deploy [options]

How Deployment Works

Common Options

FlagDescription
--env <env>Deploy to specific environment (default: prod)
--skip-promotionDeploy without setting as current version
--force-local-buildBuild locally with Docker (vs remote build)
--dry-runBuild without deploying
--log-level debugVerbose output for debugging

Examples

bash
# Deploy to production (default)
npx trigger.dev@latest deploy

# Deploy to staging
npx trigger.dev@latest deploy --env staging

# Deploy to preview branch
npx trigger.dev@latest deploy --env preview

# Deploy without promoting to current version
npx trigger.dev@latest deploy --skip-promotion

# Test build without deploying
npx trigger.dev@latest deploy --dry-run

# Build locally (fallback if remote build fails)
npx trigger.dev@latest deploy --force-local-build

CI Authentication

In CI environments, use the TRIGGER_ACCESS_TOKEN env var:

bash
TRIGGER_ACCESS_TOKEN=xxx npx trigger.dev@latest deploy

Self-hosting

Override API URL:

bash
TRIGGER_API_URL=https://trigger.yourdomain.com npx trigger.dev@latest deploy

Built from official Trigger.dev documentation