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

> Commit schema from draft to live

Promote a schema from draft to live mode. Requires a schema slug as a positional argument. Once committed, the schema changes become active immediately. <br />
You do not need to run this command separately if you already used the `--commit=true` flag with the [`schema push`](/reference/cli-schema-push) command.

## Syntax

```bash theme={"system"}
suprsend schema commit <schema-slug> [flags]
```

**Arguments:**

* `<schema-slug>` - Slug of the schema to commit (required)

## Flags

| Flag                          | Description                                    | Default |
| ----------------------------- | ---------------------------------------------- | ------- |
| `-h, --help`                  | Show help for the command                      | –       |
| `-m, --commit-message string` | Message describing the changes being committed | –       |

## Example

```bash theme={"system"}
# Commit a schema in staging workspace to live status
suprsend schema commit my-schema

# Commit schema in production workspace with commit message
suprsend schema commit notification-schema --workspace production --commit-message "Commit message"
```
