From 2b7382cd63a0d157178a84d76d5a8b008fb494a5 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Mon, 24 Jun 2019 08:28:24 +0200 Subject: [PATCH] Rename cli command "run" to "execute" --- packages/cli/README.md | 6 +++--- packages/cli/commands/{run.ts => execute.ts} | 2 +- packages/cli/index.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename packages/cli/commands/{run.ts => execute.ts} (99%) diff --git a/packages/cli/README.md b/packages/cli/README.md index 3d87396ade..5da531ddec 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -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 +n8n execute --id ``` Execute a workflow from a workflow file: ```bash -n8n run --file +n8n execute --file ``` diff --git a/packages/cli/commands/run.ts b/packages/cli/commands/execute.ts similarity index 99% rename from packages/cli/commands/run.ts rename to packages/cli/commands/execute.ts index 66ab248f89..aaf0064cf7 100644 --- a/packages/cli/commands/run.ts +++ b/packages/cli/commands/execute.ts @@ -24,7 +24,7 @@ import { module.exports = (vorpal: Vorpal) => { return vorpal - .command('run') + .command('execute') // @ts-ignore .description('Executes a given workflow') .option('--file ', diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 43e63cf857..1fb98bd9df 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -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()