> ## 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.

# Commit Category

> Commit categories

Promote preference categories from draft to live mode. Also pushes any local translation files from the translations subdirectory before committing. You don't need to run this command if you already used the `--commit=true` flag with the [`category push`](/reference/cli-category-push) command.

## Syntax

```bash theme={"system"}
suprsend category commit [flags]
```

## Flags

| Flag                      | Description                                         | Default               |
| ------------------------- | --------------------------------------------------- | --------------------- |
| `-h, --help`              | Show help for the command                           | –                     |
| `--commit-message string` | Message describing the changes being committed      | –                     |
| `-d, --dir string`        | Directory containing category and translation files | `./suprsend/category` |

## Example

```bash theme={"system"}
# Commit categories in staging workspace (default)
suprsend category commit

# Commit categories in production workspace
suprsend category commit --workspace production

# Commit categories with a descriptive message
suprsend category commit --commit-message "Added new preference categories"
```
