Command
nylas workflow create
Create a workflow
Written by Qasim Muhammad Staff SRE
What does nylas workflow create do?
The nylas workflow create command creates a workflow. It is part of the Hosted Workflows commands, which automated workflows triggered by Nylas events (e.g., bookings).
Usage
nylas workflow createFlags
| Flag | Description |
|---|---|
| --delay int | Delay in minutes before the workflow sends |
| --disabled | Create the workflow in a disabled state |
| --enabled | Create the workflow in an enabled state |
| --file string | Path to a JSON workflow definition |
| --from-email string | Transactional sender email |
| --from-name string | Transactional sender display name |
| --grant-id string | Grant ID or email for grant-scoped workflows |
| --name string | Workflow name |
| --scope string | Workflow scope: app or grant |
| --template-id string | Hosted template ID |
| --trigger-event string | Workflow trigger event |
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
Examples
The nylas workflow create command creates a workflow.
JSON output for scripting
nylas workflow create --jsonTroubleshooting
Command not found or fails
Run `nylas auth config` and `nylas auth login` to authenticate first.
Recommended guides
Thunderbird vs Nylas: GUI vs CLI email
Thunderbird is a desktop GUI email client with OAuth and calendar built in. Compare it to a scriptable, headless CLI for servers, cron jobs, and AI agents.
Build a Vellum Email Agent
Give a Vellum workflow email by wrapping the Nylas CLI as a code-node tool — one subprocess call per action, JSON in and out, across 6 providers, no SDK.
Pipedream vs Nylas for Email Automation
Pipedream wires 3,000+ apps with event workflows and code steps. Nylas is a native email API with a CLI for agents and cron. Compare as a Pipedream alternative.
Detect Calendar Conflicts from the CLI
Spot double-booked meetings and overlapping events from the terminal. AI conflict detection and jq scripts catch calendar conflicts before they derail your day.
Block Focus Time on Your Calendar (CLI)
Context-switching costs 23 minutes of focus per interruption. Block focus time on Google Calendar from your terminal so meetings can't eat your deep-work slots.
Build a Dify Email Agent
Wrap the Nylas CLI as a Dify custom tool: upload one OpenAPI schema and your Dify email agent reads, searches, and drafts across Gmail, Outlook, and 4 more.
Run nylas workflow create --help for full help output.