Use the suprsend category commit CLI command to promote preference categories and translation files from draft to live mode in your workspace.
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 flag with the category push command.
Syntax
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/preference_categories
-n, --dry-run
Print what would be committed without making any changes
–
-F, --force
Skip confirmation prompt
–
Example
# Commit categories in staging workspace (default)suprsend category commit# Commit categories in production workspacesuprsend category commit --workspace production# Commit categories with a descriptive messagesuprsend category commit --commit-message "Added new preference categories"