Command "n8n execute --id" how to pass input parameters to workflow?

Hello

Is passing input parameters to the workflow when triggering it with the CLI command n8n execute --id possible? Without the ability to provide inputs to the workflow, this command seems limited and less useful.

  • n8n version: 1.76.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: MacOS

Welcome to the community @lieranderl !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


Passing an input implies the workflow uses some sort of a webhook. Use curl instead to activate it, for example.

Hi @ihortom
Is it possible to have a workflow or sub-workflow (without webhook) and execute it from the CLI while passing some input? Currently, the n8n execute --id <ID> command only allows executing workflows without passing inputs, which seems quite limited.
The idea is generally to have a worker node container only (so no webhooks) and execute the workflow when needed and then drop the idle container.

You coud have your input data saved/stored somewhere else or as custom n8n variables and your workflow access that data at run time. I cannot see other ways.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.