Skip to content

Import & export

Plan import and export let you move plans between Alteryx One workspaces — for example, promoting from development to production. The exported format is portable and can be committed to version control.

Mutating commands are dry-run by default — add --apply to commit.

Command What it does
ayx one plans export Export a plan to a portable file
ayx one plans import Import a plan into the workspace
Terminal window
# Dry-run — shows export metadata, writes nothing
ayx one plans export <plan-id>
# Commit — write the export
ayx one plans export <plan-id> --apply

Unlike flow export, plans export does not take an --output path flag — the server controls the output location or returns the content inline. Use --output json to capture the full response including any returned artifact data.

Terminal window
# Dry-run
ayx one plans import
# Commit
ayx one plans import --apply
# Non-interactive (CI / scripts)
ayx one plans import --apply --yes
# Target a specific profile
ayx one plans import --profile <name> --apply

In this version, ayx one plans import --help shows only the standard flags (--profile, --apply, --yes, and the diagnostic flags) — there is no --body or --input. If you need to automate plan imports, confirm the expected input mechanism for your Alteryx One version before scripting it.

Terminal window
# 1. Export from dev
ayx --output json --profile dev one plans export <plan-id> --apply \
> plan-export.json
# 2. Import to prod
ayx one plans import --profile prod --apply --yes