A command-line interface for interacting with n8n workflow automation.
Note: Most commands work with standard n8n. However, the
triggercommand requires the execute workflow endpoint, which is pending merge into n8n core. Until then,triggerrequires a custom n8n build.
pip install n8n-cliOr with pipx (recommended):
pipx install n8n-cli# Configure your n8n instance
n8n-cli configure
# List all workflows
n8n-cli workflows
# Trigger a workflow
n8n-cli trigger <workflow-id>
# Check execution status
n8n-cli execution <execution-id>- Workflow Management - List, create, update, delete, enable, and disable workflows
- Execution Control - Trigger workflows, monitor executions, and retrieve results
- Flexible Output - JSON (default) or formatted tables
- Agent-Friendly - Designed for AI agent integration with structured JSON output
- Secure Configuration - Credentials stored with proper file permissions
| Command | Description |
|---|---|
configure |
Set up n8n API credentials |
workflows |
List all workflows |
workflow |
Get workflow details |
create |
Create a new workflow |
update |
Update an existing workflow |
update-node |
Update a specific node parameter |
delete |
Delete a workflow |
enable |
Activate a workflow |
disable |
Deactivate a workflow |
executions |
List workflow executions |
execution |
Get execution details |
trigger |
Trigger a workflow |
credentials |
Manage credentials (create, delete, schema) |
For detailed documentation, see the Wiki:
- Configuration - Setup and environment variables
- Command Reference - Full command documentation
- Agent Integration - Using with AI agents
- Environment Variables - All configuration options
- Troubleshooting - Common issues and solutions
- Development - Contributing guide
