> ## Documentation Index
> Fetch the complete documentation index at: https://docs.suprsend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Category

> Get categories and translations

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

```bash theme={"system"}
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`  |

<Tip>
  Use `-o json` for machine-readable JSON output, `-o yaml` for YAML.
</Tip>

## Example

```bash theme={"system"}
# 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
```
