You need Node.js 18.20.0 or later and an existing TypeScript or JavaScript project (Next.js, Remix, Express, etc.).
Create a Trigger.dev account
Sign up at cloud.trigger.dev. The onboarding flow will guide you through creating your first organization and project.Once you have a project, you’ll have access to API keys for both
dev and prod environments from the API keys page in the dashboard.Initialize Trigger.dev in your project
Run the The CLI will:
init command in the root of your project:- Ask you to log in (or create an account) if you’re not already authenticated
- Ask which project to connect to
- Install
@trigger.dev/sdkas a dependency - Create a
trigger.config.tsconfiguration file - Create a
/triggerdirectory with a samplehello-world.tstask
trigger.config.ts will look like this:Write your first task
Open (or create) a file inside the
/trigger directory. Tasks are defined using the task function from @trigger.dev/sdk and must be exported.Start the dev server
Run the dev command from your project root:This starts a local worker that:Leave this running while you develop and test.
- Connects to Trigger.dev Cloud (or your self-hosted instance)
- Watches your
/triggerdirectory for changes and hot-reloads - Runs tasks locally in your Node.js process
- Shows live logs in the terminal
Trigger a test run
With the dev server running, open the Trigger.dev dashboard and navigate to your project. You’ll see your Click Run test. The run executes in your local dev server and you can watch the logs in both the dashboard and the terminal.Alternatively, trigger the task programmatically from your application:
process-order task listed.Click the task, then click Test to open the test panel. Enter a JSON payload matching your task’s input type:Import your task as a type-only import (
import type) to avoid bundling task code into your application server.Deploy to production
When you’re ready to deploy, run:The CLI will:Once deployed, trigger tasks using your production API key. See API keys in the dashboard for details.
- Build your task code with esbuild and bundle dependencies
- Package the result into a Docker image
- Push the image to Trigger.dev’s registry
- Register the new deployment — your tasks are live immediately
Next steps
How it works
Understand the architecture, checkpointing, and run lifecycle.
Writing tasks
Learn all the options for defining tasks — queues, concurrency, middleware, and more.
Triggering tasks
Trigger tasks from your API routes, webhooks, cron jobs, or other tasks.
Guides & examples
Framework-specific guides for Next.js, Remix, and more, plus example projects.