Pull schemas from a SuprSend workspace into your local directory or server. This action does not delete existing schemas; instead, it overwrites schemas with the same slug or creates new ones.

By default, pulled schemas are stored in the suprsend/schema/ directory, but you can change the destination using the -d flag. We recommend specifying a directory when working with multiple production or staging workspaces.

Syntax

suprsend schema pull [flags]

Flags

FlagDescriptionDefault
-h, --helpShow help for the command
-d, --dir stringDirectory to pull schemassuprsend/schema
-m, --mode stringMode of schemas to pull (draft, live)live
-g, --slug stringSlug to pull individual schema

Example

# Pull schemas from staging workspace (default)
suprsend schema pull

# Pull schemas from production workspace
suprsend schema pull --workspace production

# Pull individual schema by passing it's slug
suprsend schema pull --slug my-schema

# Pull schemas into custom directory path
suprsend schema pull --dir schemas

# Pull draft schemas from production
suprsend schema pull --mode draft --workspace production