Rename cli command "run" to "execute"

This commit is contained in:
Jan Oberhauser 2019-06-24 08:28:24 +02:00
parent b776bd8bd7
commit 2b7382cd63
3 changed files with 6 additions and 6 deletions

View file

@ -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>
```

View 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>',

View 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()