diff --git a/docs/quick-start.mdx b/docs/quick-start.mdx index d6253bc269..c9838ec6bd 100644 --- a/docs/quick-start.mdx +++ b/docs/quick-start.mdx @@ -1,6 +1,6 @@ --- title: "Quick start" -description: "How to get started in 3 minutes using the CLI and SDK." +description: "How to quickly get started using an AI coding assistant or the CLI and SDK." --- import CliInitStep from '/snippets/step-cli-init.mdx'; @@ -8,37 +8,35 @@ import CliDevStep from '/snippets/step-cli-dev.mdx'; import CliRunTestStep from '/snippets/step-run-test.mdx'; import CliViewRunStep from '/snippets/step-view-run.mdx'; -In this guide we will: + -1. Create a `trigger.config.ts` file and a `/trigger` directory with an example task. -2. Get you to run the task using the CLI. -3. Show you how to view the run logs for that task. +```txt +Add Trigger.dev to my project. - - - - -You can either: - -- Use the [Trigger.dev Cloud](https://cloud.trigger.dev). -- Or [self-host](/open-source-self-hosting) the service. - - +- Before each step, briefly explain what it does +- Keep me on track until I've successfully triggered my first task +- Show me the results when we're done +``` - - -Once you've created an account, follow the steps in the app to: - -1. Complete your account details. -2. Create your first Organization and Project. - - - - - - - + + + + You can either: + - Use the [Trigger.dev Cloud](https://cloud.trigger.dev). + - Or [self-host](/open-source-self-hosting) the service. + + + + Once you've created an account, follow the steps in the app to: + 1. Complete your account details. + 2. Create your first Organization and Project. + + + + + + ## Next steps diff --git a/docs/snippets/step-cli-init.mdx b/docs/snippets/step-cli-init.mdx index 265f3d9c89..bb324cee4c 100644 --- a/docs/snippets/step-cli-init.mdx +++ b/docs/snippets/step-cli-init.mdx @@ -1,8 +1,6 @@ -The easiest way to get started is to use the CLI. It will add Trigger.dev to your existing project, create a `/trigger` folder and give you an example task. - -Run this command in the root of your project to get started: +Run this command in the root of your project: @@ -20,7 +18,14 @@ yarn dlx trigger.dev@latest init -It will do a few things: +You'll be asked to choose how to initialize: + +- **Trigger.dev MCP** Installs our [MCP server](/mcp-overview) 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](/mcp-overview) 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.