gws-modelarmor-create-template

Create a Google Model Armor template via the gws CLI with project, location, and template-id.

8|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-modelarmor-create-template-niclasmartinsson-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-modelarmor-create-template
Source: https://github.com/niclasmartinsson-sys/google-workspace-cli/tree/main/skills/gws-modelarmor-create-template
Command: npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill gws-modelarmor-create-template-niclasmartinsson-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a new Google Model Armor template to standardize content safety controls within a Google Workspace deployment, simplifying policy enforcement.

Core Features & Use Cases

  • Creates a new Model Armor template via the gws CLI using project, location, and template-id.
  • Supports optional --preset or --json configurations to tailor the template.
  • Encourages safe usage with a visible CAUTION that confirms write operations before execution.

Quick Start

Create a new template by running gws modelarmor +create-template --project <PROJECT> --location <LOCATION> --template-id <ID>.

Frequently Asked Questions about gws-modelarmor-create-template

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Google Model Armor template via CLI?

To create a Google Model Armor template, run the gws CLI command using your specific project, location, and template-id parameters. This standardizes content safety controls and simplifies policy enforcement across your deployment.

Can I use a JSON file to configure Model Armor template settings?

Yes, you can configure a Model Armor template using a JSON file. The gws CLI supports an optional --json flag to tailor template configurations, alongside a --preset option for alternative predefined safety setups.

What is a Model Armor template needed for in Google Workspace?

A Model Armor template is needed to standardize content safety controls within a Google Workspace deployment. It simplifies policy enforcement by ensuring safety rules are applied consistently across your environment.

What safety rules are enforced when creating a Model Armor template via gws CLI?

Creating a Model Armor template via the gws CLI enforces safety rules defined by gws-shared. The process requires user-provided project, location, and template-id values to integrate with shared authentication and global flags.

Does the gws CLI execute write operations automatically when creating a template?

No, the gws CLI does not execute write operations automatically. It displays a visible CAUTION to confirm write operations before execution, ensuring you manually approve the creation of the Model Armor template.

What inputs are required to standardize content safety controls with Model Armor?

Standardizing content safety controls with Model Armor requires user-provided values for your project, location, and template-id. These values are passed via the gws CLI to identify and generate the template correctly.