n8n command in your terminal.
Getting Help
To see available commands:Main Commands
start
Starts the n8n server with Web UI and activates all workflows.boolean
default:"false"
Automatically opens the n8n UI in your default browser after startup.
The start command initializes the full n8n server including:
- Web UI (Editor)
- Workflow execution engine
- Active workflow triggers
- Webhook endpoints
- REST API
worker
Starts an n8n worker process for queue mode execution. Workers handle workflow executions from the queue.number
default:"10"
Number of jobs that can run in parallel on this worker.
Important: Concurrency less than 5 can lead to an unstable environment. Consider setting it to at least 5 for best performance.
N8N_CONCURRENCY_PRODUCTION_LIMIT: Overrides the--concurrencyflag if set to a value other than -1QUEUE_WORKER_TIMEOUT: Graceful shutdown timeout (deprecated, useN8N_GRACEFUL_SHUTDOWN_TIMEOUT)
webhook
Starts a dedicated webhook process that intercepts production webhook URLs. Useful for scaling webhook handling separately.Queue Mode Required: The webhook command only works when execution mode is set to
queue. It cannot run in regular execution mode.- Separate webhook handling from main process
- Scale webhook endpoints independently
- Improve reliability for high-traffic webhooks
execute
Executes a specific workflow once from the command line.string
required
The ID of the workflow to execute.
boolean
default:"false"
Outputs only JSON data with no additional text.
The execute command does not support queue mode and will automatically fall back to regular execution mode.
execute-batch
Executes multiple workflows for testing and comparison purposes.string
Comma-separated workflow IDs or path to file containing IDs.
number
default:"1"
How many workflows can run in parallel.
boolean
default:"false"
Display all errors and debug messages.
string
Path to save execution results JSON file.
string
Directory to save execution snapshots for later comparison.
string
Directory containing snapshots to compare against current execution.
boolean
default:"false"
Compare only top-level attributes, ignoring nested JSON objects.
string
Path to JSON file containing workflow IDs to skip.
number
default:"1"
Number of times to retry failed workflows (0 to disable).
boolean
default:"false"
Show only summary, omitting full execution details.
This command is particularly useful for automated testing, regression testing, and CI/CD workflows.
Additional Commands
List Commands
- list:workflow
Lists all workflows in the database.
Database Commands
- db:reset
- db:prune
Resets the database (development only).
Command-Line Options
Global Options
These options work with most commands:Interactive Features
When runningn8n start in a TTY terminal:
- Press
oto open the n8n editor in your browser - Press
Ctrl+Cto gracefully shut down n8n
Environment Configuration
All CLI commands respect environment variables for configuration. See the Environment Variables documentation for details. Key configuration areas:- Database connection
- Execution mode (regular/queue)
- Network and ports
- Security settings
- Node.js settings
Next Steps
Execution Modes
Learn about different execution modes and flags
Import/Export
Import and export workflows and credentials
User Management
Manage users via CLI
Configuration
Configure n8n settings