Retrieve preference categories and their translations from a workspace. Returns the full category structure along with translations for all non-English locales. Use --mode to switch between draft and live versions.
Syntax
suprsend category get [flags]
Flags
| Flag | Description | Default |
|---|
-h, --help | Show help for the command | – |
--mode string | Version mode (draft or live) | live |
-o, --output string | Output format (json, yaml) | json |
Use -o json for machine-readable JSON output, -o yaml for YAML.
Example
# Get all categories and translations
suprsend category get
# Get draft categories
suprsend category get --mode draft
# Get categories in YAML format
suprsend category get --output yaml
# Get categories from production workspace
suprsend category get --workspace production