This action does not delete existing categories; instead, it overwrites categories with the same slug or creates new ones.

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

Syntax

suprsend category pull [flags]

Flags

FlagDescriptionDefault
-h, --helpShow help for the command
-d, --dir stringOutput directory for categories./suprsend/category
-m, --mode stringMode to pull categories fromlive
-w, --workspace stringWorkspace to pull categories fromstaging

Example

# Pull all live categories to default directory
suprsend category pull

# Pull categories into custom directory path
suprsend category pull --dir categories

# Pull categories from production workspace
suprsend category pull --workspace production

# Pull draft categories
suprsend category pull --mode draft