Flows
Flows are the core execution unit in Alteryx One. The ayx one flows branch covers every lifecycle operation: browsing the catalog, running flows on demand, editing metadata, moving flows between folders, and managing the data connections they use.
These are not the same as Alteryx One’s cloud-native workflows documented in Workflows. A workspace can contain many cloud-native workflows while
ayx one flows listreturns no items, becauseone flowsreads the separate integer-id-keyed Designer Cloud/v4/flowsfamily.
Mutating commands are dry-run by default — add --apply to commit.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
ayx one flows list |
List flows in the workspace |
ayx one flows count |
Return total flow count |
ayx one flows detail |
Fetch a single flow’s metadata |
ayx one flows validate |
Validate a flow |
ayx one flows run |
Trigger an on-demand run |
ayx one flows create |
Create a new flow |
ayx one flows update |
Update flow metadata |
ayx one flows delete |
Delete a flow |
ayx one flows copy |
Copy a flow |
ayx one flows move |
Move a flow to a different folder |
ayx one flows parameters |
List flow parameters |
ayx one flows inputs |
List flow input connections |
ayx one flows outputs |
List flow output connections |
ayx one flows replace-dataset |
Replace a dataset reference in a flow |
ayx one flows library list |
List library flows |
ayx one flows library count |
Count library flows |
ayx one flows folders ... |
Manage flow folders — see Flow folders |
ayx one flows permissions |
Set permissions on a flow |
ayx one flows import |
Import a flow package |
ayx one flows import-dry-run |
Preview an import without applying |
ayx one flows export |
Export a flow to a file |
ayx one flows export-dry-run |
Preview an export without writing |
List and inspect
Section titled “List and inspect”List flows
Section titled “List flows”ayx one flows listayx one flows list --profile <name>ayx one flows list --limit 50ayx one flows list --allayx one flows list --all --max-pages 10--all follows pagination automatically, stopping at --max-pages (default 50). Use --page-token to start from a specific page returned by a prior call.
Count flows
Section titled “Count flows”ayx one flows countayx one flows count --profile <name>Returns the total number of flows in the workspace.
Flow detail
Section titled “Flow detail”ayx one flows detail <flow-id>ayx one flows detail <flow-id> --profile <name>Returns the full metadata record for a single flow.
Validate a flow
Section titled “Validate a flow”ayx one flows validate <flow-id>Runs server-side validation and returns any errors. Read-only — does not modify the flow.
Inspect connections and parameters
Section titled “Inspect connections and parameters”# Parameters the flow acceptsayx one flows parameters <flow-id>ayx one flows parameters <flow-id> --output-object-type <type>
# Input data connectionsayx one flows inputs <flow-id>
# Output data connectionsayx one flows outputs <flow-id># Dry-run (shows what would be triggered)ayx one flows run <flow-id>
# Trigger an on-demand runayx one flows run <flow-id> --apply
# Pass a JSON body (e.g. run parameters)ayx one flows run <flow-id> --body '<json>' --apply--body accepts a raw JSON string. Use it to override parameters or pass run-time configuration accepted by the flow.
Create and update
Section titled “Create and update”# Dry-run: preview the requestayx one flows create --body '<json>'
# Createayx one flows create --body '<json>' --apply
# Updateayx one flows update <flow-id> --body '<json>' --applyBoth commands require --body with the flow definition or patch as a JSON string.
Copy and move
Section titled “Copy and move”# Copy (body specifies the destination name / folder)ayx one flows copy <flow-id> --body '<json>' --apply
# Move to a different folderayx one flows move <flow-id> --body '<json>' --applyReplace a dataset
Section titled “Replace a dataset”ayx one flows replace-dataset <flow-id> --body '<json>' --applyReplaces a dataset reference inside the flow without modifying the flow logic. Useful when promoting flows between environments that point at different data sources.
Delete
Section titled “Delete”# Dry-runayx one flows delete <flow-id>
# Commitayx one flows delete <flow-id> --apply
# Non-interactive (CI / scripts)ayx one flows delete <flow-id> --apply --yesAutomation patterns
Section titled “Automation patterns”List all flows as JSON
Section titled “List all flows as JSON”ayx --output json one flows list --all \ | jq '.data[]'Extract just IDs and names
Section titled “Extract just IDs and names”ayx --output json one flows list --all \ | jq -r '.data[] | [.id, .name] | @tsv'Run a flow and capture the job reference
Section titled “Run a flow and capture the job reference”result=$(ayx --output json one flows run <flow-id> --apply)ok=$(echo "$result" | jq -r '.ok')Validate before promoting
Section titled “Validate before promoting”ayx --output json one flows validate <flow-id> \ | jq -e '.ok'Target a specific environment
Section titled “Target a specific environment”ayx --output json --env prod one flows list--env is a root flag — place it before the subcommand.