For the complete documentation index, see llms.txt.

chainctl policies list

  2 min read

chainctl policies list

List policies.

Synopsis

List the policies available for an organization.

Each available policy is shown with its name, resource type, and description. Several policies can share a name across resource types, so –resource-type narrows the list to one of them.

chainctl policies list [--parent ORGANIZATION_NAME | ORGANIZATION_ID] [--output=json|table] [flags]

Examples


# List all policies for an organization
chainctl policies list --parent=example.com

# List policies using interactive organization selection
chainctl policies list

# List only the policies that apply to Python packages
chainctl policies list --parent=example.com --resource-type=Python

# List policies in JSON format
chainctl policies list --parent=example.com -o json

Options

      --parent string          The name or id of the organization. Defaults to the default.group config value (env: CHAINGUARD_DEFAULT_GROUP).
      --resource-type string   Only list entries for this resource type (shorthand: Repo, Python, Java, Javascript; or a full type).

Options inherited from parent commands

      --api string         The url of the Chainguard platform API. (default "https://console-api.enforce.dev")
      --audience string    The Chainguard token audience to request. (default "https://console-api.enforce.dev")
      --config string      A specific chainctl config file. Uses CHAINCTL_CONFIG environment variable if a file is not passed explicitly.
      --console string     The url of the Chainguard platform Console. (default "https://console.chainguard.dev")
      --force-color        Force color output even when stdout is not a TTY.
  -h, --help               Help for chainctl
      --issuer string      The url of the Chainguard STS endpoint. (default "https://issuer.enforce.dev")
      --log-level string   Set the log level (debug, info) (default "ERROR")
  -o, --output string      Output format. One of: [csv, env, go-template, id, json, markdown, none, table, terse, tree, wide]
  -v, --v int              Set the log verbosity level.

SEE ALSO

Last updated: 2026-08-24 17:35