Skip to main content
This command reads and validates schema files locally before pushing them to the target workspace, where they are created in draft mode. To commit schemas while pushing, include the --commit=true flag.
Any schema that fails validation will be skipped and not pushed to the workspace.

Syntax

suprsend schema push [flags]

Options

FlagDescriptionDefault
-h, --helpShow help for the command
-c, --commit stringCommit the schemas (—commit=true)true
-m, --commit-message stringCommit message describing the changes for —commit=true
-d, --dir stringDirectory for schemas pull tosuprsend/schema
-g, --slug stringSlug of schema to push

Example

# Push schemas to staging workspace (default)
suprsend schema push

# Push schemas to production workspace
suprsend schema push --workspace production

# Push individual schema by passing it's slug
suprsend schema push --slug my-schema

# Push schemas and commit them
suprsend schema push --commit=true --commit-message "Commit message" 

🚨 Push and Commit Behavior:
  • Schemas not showing up in live mode? → Check if they’re linked to workflows
  • Fix: Update your workflow files to include the new schemas, or remove the workflow links
I