--commit to push and commit in a single step, making changes live immediately.
This action overwrites templates with the same slug in the workspace, or creates new ones if they do not exist.
Syntax
Flags
| Flag | Description | Default |
|---|---|---|
-h, --help | Show help for the command | – |
-g, --slug string | Push a single template by slug. Omit to push all templates in the directory. | – |
-d, --dir string | Directory to read template files from | ./suprsend/templates |
-c, --commit | Commit the pushed templates to live immediately after pushing | – |
-m, --commit-message string | Message describing the changes (used when --commit is set) | – |
-f, --force | Force commit by skipping variants that have errors | – |
Example
Without
--commit, pushed changes are saved as a draft. Run suprsend template commit <slug> as a separate step when you are ready to make them live.