Skip to main content

Synopsis

Archive a rego policy. An archived rego policy is left out of kosli list rego-policies unless --archived is given. Archiving creates no version: its versions stay readable with kosli get rego-policy, an evaluation of it still runs, and its identifier stays taken. Only an org admin can archive. Restore it with kosli unarchive rego-policy.

Flags

Flags inherited from parent commands

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on November 26, 2026