Skip to content

policy group generate

Print a policy-group create template (YAML or JSON).

Description

Print a starter spec for group create --file. With --output json the template is emitted as JSON; otherwise a commented YAML skeleton is printed. The template's name is unique per user (required) and description is optional.

Synopsis

grn agentbase policy group generate

Options

This command takes no command-specific options.

Global options

All grn agentbase commands accept:

  • -o, --output json|table|id — output format (default table); json selects the JSON template here
  • -i, --interactive — prompt for missing required parameters
  • The shared grn global options: --profile, --region, --query, --endpoint-url, --debug

Examples

Print the YAML template:

grn agentbase policy group generate

Print the JSON template and save it:

grn agentbase policy group generate -o json > group.json