Categories are pushed in draft state until committed.\ You can either pass the —commit=true flag to push and commit categories in a single step, or commit them later using the category commit command to make them live. \ Until committed, changes remain inactive and will not be reflected in your application or workflow settings.

Syntax

suprsend category push [flags]

Flags

FlagDescriptionDefault
-h, --helpShow help for the command
-c, --commit stringCommit the categoriestrue
-m, --commit-message stringCommit message describing the changes
-d, --dir stringdirectory path where pulled categories will be savedsuprsend/category/
-w, --workspace stringWorkspace to push categories tostaging

Example

# Push categories from default directory
suprsend category push

# Push categories from custom directory
suprsend category push --dir categories

# Push categories to production workspace
suprsend category push --workspace production

# Push categories with commit message
suprsend category push --commit=true --commit-message "Update notification preferences"

Frequently Asked Questions

You can view detailed logs by enabling debug mode export DEBUG=true in your terminal. In most cases, this happens when an existing preference category is being overridden by the latest push and that category is already linked to a workflow. When this occurs, the changes cannot be committed to live mode.The updated categories will still appear in draft mode, but you’ll need to update or unlink the workflows before committing the changes live.