Skip to main content
Download workflow definitions from a workspace to local JSON files. Saves one JSON file per workflow (named by slug) to the output directory. Use --slug to pull a single workflow, or omit to pull all.

By default, pulled workflows are stored in the suprsend/workflow/ directory, but you can change the destination using the -d flag.

Syntax

suprsend workflow pull [flags]

Flags

FlagDescriptionDefault
-h, --helpShow help for the command
-g, --slug stringWorkflow slug to pull (omit to pull all)
-d, --dir stringDirectory to save workflow files to./suprsend/workflow
-f, --forceSkip directory confirmation prompt, use default path
-m, --mode stringVersion mode: draft or livelive

Example

# Pull all live workflows to current directory
suprsend workflow pull

# Pull workflows into custom directory path
suprsend workflow pull --dir dev-environment/workflows

# Pull draft workflows from production
suprsend workflow pull --mode draft --workspace production

# Pull individual workflow by passing it's slug
suprsend workflow pull --slug welcome-email