mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -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
|
## Execute Workflow from CLI
|
||||||
|
|
||||||
Workflows can not just be started by triggers, webhooks or manually via the
|
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:
|
Execute a saved workflow by its ID:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
n8n run --id <ID>
|
n8n execute --id <ID>
|
||||||
```
|
```
|
||||||
|
|
||||||
Execute a workflow from a workflow file:
|
Execute a workflow from a workflow file:
|
||||||
```bash
|
```bash
|
||||||
n8n run --file <WORKFLOW_FILE>
|
n8n execute --file <WORKFLOW_FILE>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import {
|
||||||
|
|
||||||
module.exports = (vorpal: Vorpal) => {
|
module.exports = (vorpal: Vorpal) => {
|
||||||
return vorpal
|
return vorpal
|
||||||
.command('run')
|
.command('execute')
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
.description('Executes a given workflow')
|
.description('Executes a given workflow')
|
||||||
.option('--file <workflow-file>',
|
.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
|
// Check if the command the user did enter is supported else stop
|
||||||
const supportedCommands = [
|
const supportedCommands = [
|
||||||
|
'execute',
|
||||||
'help',
|
'help',
|
||||||
'run',
|
|
||||||
'start',
|
'start',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ if (!supportedCommands.includes(command)) {
|
||||||
|
|
||||||
const vorpal = new Vorpal();
|
const vorpal = new Vorpal();
|
||||||
vorpal
|
vorpal
|
||||||
.use(require('./commands/run.js'))
|
.use(require('./commands/execute.js'))
|
||||||
.use(require('./commands/start.js'))
|
.use(require('./commands/start.js'))
|
||||||
.delimiter('')
|
.delimiter('')
|
||||||
.show()
|
.show()
|
||||||
|
|
Loading…
Reference in a new issue