Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.15 KB

File metadata and controls

37 lines (24 loc) · 1.15 KB

Run this command in the root of your project:

npx trigger.dev@latest init
pnpm dlx trigger.dev@latest init
yarn dlx trigger.dev@latest init

You'll be asked to choose how to initialize:

  • Trigger.dev MCP Installs our MCP server into your AI coding tools (Claude Code, Cursor, etc.), then lets your AI assistant set up the project for you.
  • CLI — Continue with the traditional CLI setup.

The Trigger.dev MCP lets AI assistants search docs, create and manage projects, trigger and deploy tasks, and monitor runs across environments, we recommend using it for the best developer experience.

If you choose CLI, it will:

  1. Log you into the CLI if you're not already logged in.
  2. Create a trigger.config.ts file in the root of your project.
  3. Ask where you'd like to create the /trigger directory.
  4. Create the /trigger directory with an example task, /trigger/example.[ts/js].

Install the "Hello World" example task when prompted. We'll use this task to test the setup.