mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
Rename cli command "run" to "execute"
This commit is contained in:
@@ -88,17 +88,17 @@ n8n will then read your custom configuration and use MongoDB instead.
|
||||
## Execute Workflow from CLI
|
||||
|
||||
Workflows can not just be started by triggers, webhooks or manually via the
|
||||
Editor it is also possible to run them directly via the CLI.
|
||||
Editor it is also possible to execute them directly via the CLI.
|
||||
|
||||
Execute a saved workflow by its ID:
|
||||
|
||||
```bash
|
||||
n8n run --id <ID>
|
||||
n8n execute --id <ID>
|
||||
```
|
||||
|
||||
Execute a workflow from a workflow file:
|
||||
```bash
|
||||
n8n run --file <WORKFLOW_FILE>
|
||||
n8n execute --file <WORKFLOW_FILE>
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
|
||||
module.exports = (vorpal: Vorpal) => {
|
||||
return vorpal
|
||||
.command('run')
|
||||
.command('execute')
|
||||
// @ts-ignore
|
||||
.description('Executes a given workflow')
|
||||
.option('--file <workflow-file>',
|
||||
@@ -29,8 +29,8 @@ const command = process.argv[2];
|
||||
|
||||
// Check if the command the user did enter is supported else stop
|
||||
const supportedCommands = [
|
||||
'execute',
|
||||
'help',
|
||||
'run',
|
||||
'start',
|
||||
];
|
||||
|
||||
@@ -41,7 +41,7 @@ if (!supportedCommands.includes(command)) {
|
||||
|
||||
const vorpal = new Vorpal();
|
||||
vorpal
|
||||
.use(require('./commands/run.js'))
|
||||
.use(require('./commands/execute.js'))
|
||||
.use(require('./commands/start.js'))
|
||||
.delimiter('')
|
||||
.show()
|
||||
|
||||
Reference in New Issue
Block a user