Quick Start
FreshGet Trigger.dev running in your project in under 5 minutes.
What is Trigger.dev?
Trigger.dev is an open-source platform for background jobs and AI agent workflows. Tasks run with no timeouts, automatic retries, and real-time monitoring.
Step 1: Create an Account
Sign up at cloud.trigger.dev. The onboarding flow creates your first organization and project.
You can also self-host Trigger.dev on your own infrastructure.
Step 2: Initialize Your Project
Run this in your project root:
bash
npx trigger.dev@latest initThis command will:
- Offer to install the Trigger.dev MCP server for AI assistants
- Log you into the CLI
- Ask you to select your project
- Install the SDK packages
- Create a
/triggerdirectory with an example task - Create
trigger.config.tsin your project root
TIP
Install the "Hello World" example task when prompted — you'll use it to test the setup.
Step 3: Start the Dev Server
bash
npx trigger.dev@latest devThis runs a local server that:
- Watches your
/triggerdirectory for changes - Communicates with the Trigger.dev platform
- Shows task status and links to run logs in the terminal
- Each task runs in a separate Node process (no blocking)
Step 4: Test a Run
- Visit the test URL shown in your terminal
- Select your example task
- Click "Run test"
- Watch the run page live-reload with status updates
What's Next?
| Next Step | Link |
|---|---|
| Learn to write tasks | SOP-002: Writing Tasks |
| Understand triggering | Workflows: AI Agent |
| Deploy to production | SOP-003: Deploying |
| CLI reference | Quick Reference: Commands |