diff --git a/packages/cli-v3/README.md b/packages/cli-v3/README.md index d7fba79d54..84fc2a7911 100644 --- a/packages/cli-v3/README.md +++ b/packages/cli-v3/README.md @@ -1,10 +1,30 @@ +
+ + + + Trigger.dev logo + + +[![npm version](https://img.shields.io/npm/v/trigger.dev.svg)](https://www.npmjs.com/package/trigger.dev) +[![npm downloads](https://img.shields.io/npm/dm/trigger.dev.svg)](https://www.npmjs.com/package/trigger.dev) +[![GitHub stars](https://img.shields.io/github/stars/triggerdotdev/trigger.dev?style=social)](https://github.com/triggerdotdev/trigger.dev) +[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](https://www.typescriptlang.org/) +[![License: ](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![Open Source](https://img.shields.io/badge/Open%20Source-%E2%9D%A4-red)](https://github.com/triggerdotdev/trigger.dev) + +[Discord](https://trigger.dev/discord) | [Website](https://trigger.dev) | [Issues](https://github.com/triggerdotdev/trigger.dev/issues) | [Docs](https://trigger.dev/docs) | [Examples](https://trigger.dev/docs/examples) + +
+ # Trigger.dev CLI A CLI that allows you to create, run locally and deploy Trigger.dev background tasks. Note: this only works with Trigger.dev v3 projects and later. For older projects use the [@trigger.dev/cli](https://www.npmjs.com/package/@trigger.dev/cli) package. -Trigger.dev is an open source platform that makes it easy to create event-driven background tasks directly in your existing project. +## About Trigger.dev + +Trigger.dev is an open source platform for building and deploying fully-managed AI agents and workflows. Write workflows in normal async TypeScript for everything from simple tasks to long-running AI agents, heavy media processing, complex real-time systems and more. Complete with full observability, managed queues, and elastic infrastructure which handles the horizontal scaling. ## Commands @@ -17,38 +37,14 @@ Trigger.dev is an open source platform that makes it easy to create event-driven | [whoami](https://trigger.dev/docs/cli-whoami-commands) | Display the current logged in user and project details. | | [logout](https://trigger.dev/docs/cli-logout-commands) | Logout of Trigger.dev. | | [list-profiles](https://trigger.dev/docs/cli-list-profiles-commands) | List all of your CLI profiles. | +| [preview archive](https://trigger.dev/docs/cli-preview-archive) | Archive a preview branch. | +| [promote](https://trigger.dev/docs/cli-promote-commands) | Promote a previously deployed version to the current version. | +| [switch](https://trigger.dev/docs/cli-switch) | Switch between CLI profiles. | | [update](https://trigger.dev/docs/cli-update-commands) | Updates all `@trigger.dev/*` packages to match the CLI version. | -## MCP Server - -The [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) is an open protocol that allows you to provide custom tools -to agentic LLM clients, like [Claude for Desktop](https://docs.anthropic.com/en/docs/claude-for-desktop/overview), [Cursor](https://www.cursor.com/), [Windsurf](https://windsurf.com/), etc... - -The Trigger.dev CLI can expose an MCP server and enable you interact with Trigger.dev in agentic LLM workflows. For example, you can use -it to trigger tasks via natural language, view task runs, view logs, debug issues with task runs, etc... - -### Starting the Trigger.dev MCP Server - -To start the Trigger.dev MCP server, simply pass the `--mcp` flag to the `dev` command: - -```bash -trigger dev --mcp -``` - -By default it runs on port `3333`. You can change this by passing the `--mcp-port` flag: - -```bash -trigger dev --mcp --mcp-port 3334 -``` - -### Configuring your MCP client - -This depends on what tool you are using. For Cursor, the configuration is in the [.cursor/mcp.json](../../.cursor/mcp.json) file -and should be good to go as long as you use the default MCP server port. - -Check out [Cursor's docs](https://docs.cursor.com/context/model-context-protocol) for further details. +## CLI documentation -Tip: try out [Cursor's YOLO mode](https://docs.cursor.com/context/model-context-protocol#yolo-mode) for a seamless experience :D +For more information on the CLI, please refer to our [docs](https://trigger.dev/docs/cli-introduction). ## Support diff --git a/packages/trigger-sdk/README.md b/packages/trigger-sdk/README.md index c53b5cb906..f82b525095 100644 --- a/packages/trigger-sdk/README.md +++ b/packages/trigger-sdk/README.md @@ -4,28 +4,48 @@ Trigger.dev logo - -### Open source background jobs with no timeouts -[Discord](https://trigger.dev/discord) | [Website](https://trigger.dev) | [Issues](https://github.com/triggerdotdev/trigger.dev/issues) | [Docs](https://trigger.dev/docs) +[![npm version](https://img.shields.io/npm/v/@trigger.dev/sdk.svg)](https://www.npmjs.com/package/@trigger.dev/sdk) +[![npm downloads](https://img.shields.io/npm/dm/@trigger.dev/sdk.svg)](https://www.npmjs.com/package/@trigger.dev/sdk) +[![GitHub stars](https://img.shields.io/github/stars/triggerdotdev/trigger.dev?style=social)](https://github.com/triggerdotdev/trigger.dev) +[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](https://www.typescriptlang.org/) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![Open Source](https://img.shields.io/badge/Open%20Source-%E2%9D%A4-red)](https://github.com/triggerdotdev/trigger.dev) -[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/triggerdotdev.svg?style=social&label=Follow%20%40trigger.dev)](https://twitter.com/triggerdotdev) +[Discord](https://trigger.dev/discord) | [Website](https://trigger.dev) | [Issues](https://github.com/triggerdotdev/trigger.dev/issues) | [Docs](https://trigger.dev/docs) | [Examples](https://trigger.dev/docs/examples) # Official TypeScript SDK for Trigger.dev -The Trigger.dev SDK is a TypeScript/JavaScript library that allows you to define and trigger tasks in your project. +The Trigger.dev SDK is a TypeScript/JavaScript library that allows you to define and trigger tasks in your projects. -## About +## About Trigger.dev -Trigger.dev is an open source platform and SDK which allows you to create long-running background jobs. Write normal async code, deploy, and never hit a timeout. +Trigger.dev is an open source platform for building and deploying fully-managed AI agents and workflows. Write workflows in normal async TypeScript for everything from simple tasks to long-running AI agents, heavy media processing, complex real-time systems and more. Complete with full observability, managed queues, and elastic infrastructure which handles the horizontal scaling. + +## Core features + +- Task creation and execution +- CLI for development and deployment +- Build system with extensions +- Management API for runs, schedules, and environment variables + +## Key Components: + +- Tasks: Background jobs written in TypeScript/JavaScript +- CLI: Commands for login, init, dev, deploy +- Build Extensions: Customize builds (Prisma, Python, FFmpeg, etc.) +- Management API: Programmatic control over runs and resources ## Getting started -The quickest way to get started is to create an account in our [web app](https://cloud.trigger.dev), create a new project and follow the instructions in the onboarding. Build and deploy your first task in minutes. +There are two ways to get started: + +1. Create an account in our [web app](https://cloud.trigger.dev), create a new project and follow the instructions in the onboarding. Build and deploy your first task in minutes. +2. [Manual setup](https://trigger.dev/docs/manual-setup) in your existing project. -## SDK usage +## SDK documentation For more information on our SDK, refer to our [docs](https://trigger.dev/docs/introduction).