Skip to main content

tcb policy get

Retrieve authentication policy content (Rego format). By default, it retrieves the user-configured policy. Use --extension to retrieve the platform-configured policy for the environment.

Usage​

tcb policy get [options]

Parameters​

ParameterDescription
-e, --env-id <envId>Environment ID
--extensionRetrieve the platform-configured policy for the environment (default: user policy)
--jsonOutput JSON

Examples​

# Retrieve user policy
tcb policy get -e my-env-id

# Retrieve platform extension policy
tcb policy get --extension -e my-env-id

# Output in JSON format
tcb policy get --json -e my-env-id