CLI Overview
The@policy-kit/cli package provides a command-line interface for common policy operations — initializing, deploying, simulating, inspecting, and removing policies.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Command-line tool for policy management
@policy-kit/cli package provides a command-line interface for common policy operations — initializing, deploying, simulating, inspecting, and removing policies.
pnpm add -g @policy-kit/cli
npm install -g @policy-kit/cli
| Command | Description |
|---|---|
policykit init | Initialize a new policy from a template |
policykit deploy | Deploy a policy (IPFS + on-chain) |
policykit simulate | Simulate a transaction against a policy |
policykit inspect | Inspect an on-chain policy |
policykit remove | Remove a policy from the PolicyEngine |
| Flag | Description |
|---|---|
--chain <chain> | Target chain (base, base-sepolia) |
--rpc <url> | Custom RPC endpoint |
--private-key <key> | Private key for signing transactions |
--verbose | Enable verbose output |
--help | Show help for a command |
--version | Show CLI version |
| Variable | Description |
|---|---|
POLICYKIT_PRIVATE_KEY | Default private key |
POLICYKIT_RPC_URL | Default RPC endpoint |
POLICYKIT_CHAIN | Default chain |
PINATA_JWT | Pinata JWT for IPFS operations |
POLICYKIT_ENGINE_ADDRESS | Default PolicyEngine address |
.env file in your project root. The CLI automatically loads it.