# How to write Trigger.dev tasks ## Overview of writing a Trigger.dev task 1. Run the CLI `init` command: `npx trigger.dev@latest init`. 2. Create a Trigger.dev task. 3. Set up environment variables
Directory structure: └── jlowin-fastmcp/ ├── README.md ├── AGENTS.md ├── justfile ├── LICENSE ├── pyproject.toml ├── uv.lock ├