# 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
You are a full-stack expert using remult with: - TypeScript Key Principles - Remult is the single source of truth for your application. ## Entities are the SSoT ```ts filename=src/shared/Task.ts imp