Trigger.dev CLI
$ trigger.dev Official Med RiskTrigger.dev CLI (trigger.dev) powers v3+ TypeScript background task development, initializing trigger.config.ts, running local dev workers (dev), and building/deploying containerized tasks to Trigger.dev Cloud (deploy). It is typically invoked via npx trigger.dev@latest per project.
npm install -D trigger.dev Use npx trigger.dev@latest for bundling and deploying Trigger.dev v3+ tasks (dev and deploy); Trigger.dev MCP assists with task inspection and run triggering.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports TRIGGER_ACCESS_TOKEN and --env targeting for CI deploys, though dev is a long-running watcher and output is primarily human-formatted.
- Non-interactive CI deployments via
TRIGGER_ACCESS_TOKENand--env npx trigger.dev@latest devstreams live logs interactively
Explicit --env targeting (dev, staging, prod) separates environments, though deploy builds and pushes remote images.
- Environment separation (
stagingvsprod) ondeploy - Scoped
TRIGGER_ACCESS_TOKENfor CI
Runs via npx trigger.dev@latest or devDependency on Node.js, though deploy builds container images remotely or via local build context.
npx trigger.dev@latestavoids global version drift
Core developer interface for testing and deploying Trigger.dev v3+ durable tasks.
- Handles bundling,
trigger.config.tsresolution, and remote builds
Official Trigger.dev monorepo (triggerdotdev/trigger.dev) actively maintained under Apache-2.0.
- Official Trigger.dev GitHub organization
Well-documented CLI guides in Trigger.dev v3 docs.
- Official docs at trigger.dev/docs/cli-introduction
Security, Auth & Guardrails
Stores OAuth profile tokens under ~/.config/trigger/ via login, or reads TRIGGER_ACCESS_TOKEN and TRIGGER_SECRET_KEY for CI deployments.
CLI is free (Apache-2.0); Trigger.dev Cloud has a free tier and self-hosting is open source.
# Trigger.dev CLI Agent Rules - Always pass `--env staging` (or `--env preview`) on `deploy`; NEVER pass `--env prod` without explicit human approval. - Use `TRIGGER_ACCESS_TOKEN` for headless CI and run `dev` with a bounded timeout. - Inspect `trigger.config.ts` before invoking `init` or `deploy`.
Agent-Ready Command Recipes
Safe Read-Only Queries
npx trigger.dev@latest whoami
Displays the currently authenticated Trigger.dev account and active profile.
npx trigger.dev@latest list-profiles
Lists saved local authentication profiles without contacting production workers.
Controlled Writes & Previews
npx trigger.dev@latest deploy --env staging
Builds and deploys tasks explicitly to Trigger.dev's staging environment.
Strengths for Agents
- +
npx trigger.dev@latestkeeps CLI versions aligned with project SDK versions. - + Explicit
--envtargeting isolatesstagingandpreviewdeployments fromprod. - + Supports
TRIGGER_ACCESS_TOKENfor headless CI/CD pipelines.
Caveats & Pitfalls
- !
npxinvocation adds startup latency and requires network/cache if not pinned locally. - ! Lacks universal
--jsonoutput acrosswhoamianddeploycommands.