n8n-cli

Manage n8n workflows, credentials, and executions via the CLI.

1|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/exaland/n8n --skill n8n-cli-exaland
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-cli
Source: https://github.com/exaland/n8n/tree/main/packages/%40n8n/cli/skills/n8n-cli
Command: npx skills add https://github.com/exaland/n8n --skill n8n-cli-exaland

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamline and automate n8n instance management from the command line, reducing manual UI interactions and enabling reproducible workflows.

Core Features & Use Cases

  • Workflow management: List, get, create, update, activate, and deactivate workflows directly from the CLI.
  • Credential handling: Manage credentials and inspect schemas without exposing secrets.
  • Execution visibility: Inspect, retry, and monitor executions from scripts and CI pipelines.

Quick Start

Install the n8n-cli, login to your instance, and list your workflows to verify setup.

Frequently Asked Questions about n8n-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage n8n workflows from the command line?

You can manage n8n workflows from the command line by using a CLI tool to interact with the n8n REST API. This allows you to list, get, create, update, activate, and deactivate workflows directly from shell scripts or CI pipelines.

Can I automate n8n executions and inspect results in a CI pipeline?

Yes, you can automate n8n executions and inspect results in a CI pipeline by running scripted commands. The CLI auto-detects piped output and formats results as JSON, enabling seamless execution monitoring and retry logic within automated environments.

What is the best way to script n8n credential handling without exposing secrets?

The best way to script n8n credential handling without exposing secrets is using a CLI tool to manage credentials and inspect schemas via the REST API. This enables automated credential control from scripts while keeping sensitive values hidden.

Does the n8n CLI support JSON output for shell scripting?

Yes, the n8n CLI supports JSON output for shell scripting. It auto-detects piped output and formats REST API responses as JSON, ensuring seamless integration when managing workflows, credentials, and executions from shell environments.

Why use a CLI to control n8n instances instead of the UI?

Using a CLI to control n8n instances reduces manual UI interactions and enables reproducible workflows. It is specifically designed for scenarios requiring scripted control over workflows, credentials, and executions from CI pipelines or shell environments.

When do I need to use the n8n REST API from a shell environment?

You need to use the n8n REST API from a shell environment when you require scripted control over workflows, run executions, inspect results, and manage credentials from CI pipelines or automated scripts, ensuring reproducible instance management.