Skip to main content

Synopsis

Assert the compliance status of an environment in Kosli. Exits with non-zero code if the environment has a non-compliant status. The expected argument is an expression to specify the specific environment snapshot to assert. It has the format ENVIRONMENT_NAME[SEPARATOR][SNAPSHOT_REFERENCE] Separators can be:
  • ’#’ to specify a specific snapshot number for the environment that is being asserted.
  • ’~’ to get N-th behind the latest snapshot.
Examples of valid expressions are:
  • prod (latest snapshot of prod)
  • prod#10 (snapshot number 10 of prod)
  • prod~2 (third latest snapshot of prod)

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 July 21, 2026