$npx -y skills add googleworkspace/cli --skill gws-modelarmor-create-templateGoogle Model Armor: Create a new Model Armor template.
| 1 | # modelarmor +create-template |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | Create a new Model Armor template |
| 6 | |
| 7 | ## Usage |
| 8 | |
| 9 | ```bash |
| 10 | gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID> |
| 11 | ``` |
| 12 | |
| 13 | ## Flags |
| 14 | |
| 15 | | Flag | Required | Default | Description | |
| 16 | |------|----------|---------|-------------| |
| 17 | | `--project` | ✓ | — | GCP project ID | |
| 18 | | `--location` | ✓ | — | GCP location (e.g. us-central1) | |
| 19 | | `--template-id` | ✓ | — | Template ID to create | |
| 20 | | `--preset` | — | — | Use a preset template: jailbreak | |
| 21 | | `--json` | — | — | JSON body for the template configuration (overrides --preset) | |
| 22 | |
| 23 | ## Examples |
| 24 | |
| 25 | ```bash |
| 26 | gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --preset jailbreak |
| 27 | gws modelarmor +create-template --project P --location us-central1 --template-id my-tmpl --json '{...}' |
| 28 | ``` |
| 29 | |
| 30 | ## Tips |
| 31 | |
| 32 | - Defaults to the jailbreak preset if neither --preset nor --json is given. |
| 33 | - Use the resulting template name with +sanitize-prompt and +sanitize-response. |
| 34 | |
| 35 | > [!CAUTION] |
| 36 | > This is a **write** command — confirm with the user before executing. |
| 37 | |
| 38 | ## See Also |
| 39 | |
| 40 | - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth |
| 41 | - [gws-modelarmor](../gws-modelarmor/SKILL.md) — All filter user-generated content for safety commands |