chainctl policies versions activate

chainctlReferenceProduct

chainctl policies versions activate

Select a version of a policy to enforce.

chainctl policies versions activate {VERSION_ID | --policy=POLICY} [--output table|json]

Examples

  # Activate a version by ID
  chainctl policies versions activate 617ec5ae...
  
  # Interactively select which version to activate from a list of all versions for a policy
  chainctl policies versions activate --policy=my-policy

Options

  -h, --help            help for activate
  -p, --policy string   The policy to activate a version of. This flag is ignored if VERSION_ID is given.

Options inherited from parent commands

      --api string                   The url of the Chainguard platform API. (default "http://api.api-system.svc")
      --audience string              The Chainguard token audience to request. (default "http://api.api-system.svc")
      --config string                A specific chainctl config file.
      --console string               The url of the Chainguard platform Console. (default "http://console-ui.api-system.svc")
      --issuer string                The url of the Chainguard STS endpoint. (default "http://issuer.oidc-system.svc")
  -o, --output string                Output format. One of: ["", "table", "tree", "json", "id", "wide"]
      --timestamp-authority string   The url of the Chainguard Timestamp Authority endpoint. (default "http://tsa.timestamp-authority.svc")
  -v, --v int                        Set the log verbosity level.

SEE ALSO