mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
Rename cli command "run" to "execute"
This commit is contained in:
parent
b776bd8bd7
commit
2b7382cd63
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue