A command line utility from Permit.io to work with everything IAM and Authorization. A one-stop-shop to manage all your Authorization tools (OPA, OPAL, CEDAR, AVP, openFGA, ...) as well as the Permit Service.
- Manage the Permit PDP and perform permissions checks directly from the CLI
- Manage the Permit API
- Interact with OPA (Open Policy Agent)
- Coming Soon: Interact with OPAL
- Coming Soon: Interact with Cedar-Agent
- Coming Soon: Interact with OpenFGA
Give this Repo a ⭐ to support and stay updated
Based on Pastel
- Checkout this repo
- run
npm install
- run
npx tsx ./source/cli.tsx
$ permit-cli --help
Usage
$ permit-cli
Examples
$ permit-cli pdp check -u [email protected] -a create -r task
Checking user="[email protected]" action=create resource=task at tenant=default
ALLOWED
$ permit-cli api-key permit_key_..........
Key saved to './permit.key'