CLI Overview
Install the Permit CLI and find a categorized reference of its commands for policies, environments, and PDPs.
Environments and Terraform
Create, copy, delete, and manage Permit environments from the CLI, and export environment configuration to Terraform.
Permit API Commands
Run Permit API commands from the CLI to sync users, assign or unassign roles, and manage proxy configs.
Policy Decision Point (PDP) Commands
Run a PDP container, check permissions, view PDP stats, and check URL-based permissions from the CLI.
Policy - AI, Templates, OpenAPI
Create policies from the CLI with a simple wizard, natural language AI, templates, or an OpenAPI spec.
Policy Testing
Test policies from the CLI by replaying audit logs against a PDP or generating end-to-end test configurations.
Custom Rego (OPA) and GitOps
Configure GitOps syncing to GitHub and clone environments from the CLI, then extend policies with custom Rego.