Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Trigger.dev CLI

$ trigger.dev Official Med Risk
Trigger.dev · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Trigger.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.

FCRS-1.0 Score
79 /100
Good
Medium Confidence
Zero-Friction Install
npm install -D trigger.dev
CLI vs MCP Decision CLI Preferred vs MCP

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

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_TOKEN and --env
  • npx trigger.dev@latest dev streams live logs interactively
Trust & Safety 19 / 25

Explicit --env targeting (dev, staging, prod) separates environments, though deploy builds and pushes remote images.

  • Environment separation (staging vs prod) on deploy
  • Scoped TRIGGER_ACCESS_TOKEN for CI
Setup & Portability 12 / 15

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@latest avoids global version drift
Utility & Efficiency 13 / 15

Core developer interface for testing and deploying Trigger.dev v3+ durable tasks.

  • Handles bundling, trigger.config.ts resolution, and remote builds
Maintenance & Lineage 8 / 10

Official Trigger.dev monorepo (triggerdotdev/trigger.dev) actively maintained under Apache-2.0.

  • Official Trigger.dev GitHub organization
Docs & Verifiability 8 / 10

Well-documented CLI guides in Trigger.dev v3 docs.

  • Official docs at trigger.dev/docs/cli-introduction

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores OAuth profile tokens under ~/.config/trigger/ via login, or reads TRIGGER_ACCESS_TOKEN and TRIGGER_SECRET_KEY for CI deployments.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CLI is free (Apache-2.0); Trigger.dev Cloud has a free tier and self-hosting is open source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Check current Trigger.dev CLI identity
npx trigger.dev@latest whoami

Displays the currently authenticated Trigger.dev account and active profile.

List configured Trigger.dev CLI profiles
npx trigger.dev@latest list-profiles

Lists saved local authentication profiles without contacting production workers.

Controlled Writes & Previews

Deploy tasks to the staging environment
npx trigger.dev@latest deploy --env staging

Builds and deploys tasks explicitly to Trigger.dev's staging environment.

Strengths for Agents

  • + npx trigger.dev@latest keeps CLI versions aligned with project SDK versions.
  • + Explicit --env targeting isolates staging and preview deployments from prod.
  • + Supports TRIGGER_ACCESS_TOKEN for headless CI/CD pipelines.

Caveats & Pitfalls

  • ! npx invocation adds startup latency and requires network/cache if not pinned locally.
  • ! Lacks universal --json output across whoami and deploy commands.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI