See llms.txt for all machine-readable content.

Back to Templates

Get execute command data and transfer to JSON

Shows how it is possible to use the data of a command line tool which returns JSON.

Example shows how:

  1. to bring data in flow
  2. to use data directly in a node

Note that the 'execute command' node is not available on n8n Cloud.

Run this example on a self-hosted n8n instance where Execute Command is available. Click Execute workflow. The sample command prints one JSON object. The Code node parses it into workflow fields, and the IF node uses the boolean directly from stdout.