Custom Workflows

workflow run

Execute a custom workflow definition. Accepts JSON from a file or stdin. The command starts the workflow and returns the workflow ID, current status, and message.

bash
linkedin workflow run [flags]
FlagTypeDescription
-f / --filestringPath to workflow JSON file
bash
# From file
linkedin workflow run --file workflow.json

# From stdin
cat workflow.json | linkedin workflow run

# Inline
echo '{"actions":[...]}' | linkedin workflow run

See Building Workflows for the workflow JSON schema.

workflow status

Check status of a running workflow or wait for its completion. In-progress responses include status (pending or running) and message.

bash
linkedin workflow status <id> [flags]
ArgRequiredDescription
idyesWorkflow ID
FlagTypeDescription
--waitbooleanBlock until the workflow completes
bash
# Check current status
linkedin workflow status abc123

# Wait for completion
linkedin workflow status abc123 --wait --json