CLI Reference
The AuthBoundry CLI helps you initialize, integrate, and manage your authority system.
Installation
npm install -g @authboundry/cliCommands
authboundry init
Initialize AuthBoundry in a project.
authboundry initCreates:
authboundry.config.json- Configuration file.authboundry/- Local state directory.authboundryignore- Files to ignore
authboundry attach
Connect your application to AuthBoundry.
authboundry attach --upstream http://localhost:3001Parameters:
--upstream- Your application's server URL--port- Port for AuthBoundry to listen on (default: 3000)--name- Application name
authboundry discover
Discover capabilities from your application.
authboundry discoverAnalyzes your application's routes and handlers to identify capabilities.
authboundry status
View the current authority model status.
authboundry statusShows:
- Connected application
- Discovered capabilities
- Active policies
- Active delegations
authboundry propose
Propose an authority model based on discovered capabilities.
authboundry proposeauthboundry approve
Approve the proposed authority model.
authboundry approve [proposal-id]authboundry policy
Manage policies.
authboundry policy create --principal alice --capability invoice.readSubcommands:
create- Create a policylist- List policiesview- View a policymodify- Modify a policydelete- Delete a policy
authboundry delegate
Manage delegations.
authboundry delegate create --from alice --to bob --capability invoice.approve --expires 2026-07-31Subcommands:
create- Create a delegationlist- List delegationsview- View a delegationrevoke- Revoke a delegation
authboundry audit
Query the audit log.
authboundry audit --principal alice --capability invoice.refund --decision ALLOWParameters:
--principal- Filter by principal--capability- Filter by capability--decision- Filter by decision (ALLOW/DENY)--start- Start date--end- End date--format- Output format (json/csv/table)
authboundry export
Export policies or audit logs.
authboundry export --type policies --format csv --output policies.csvauthboundry serve
Run the AuthBoundry server.
authboundry serve config.authParameters:
config-file- Configuration file--tenant- Tenant name(s)--addr- Address to listen on--port- Port to listen on
Global Flags
--help- Show help--verbose- Verbose output--config- Configuration file path
Common Workflows
Setup a New Application
authboundry init authboundry attach --upstream http://localhost:3001 authboundry discover authboundry status authboundry propose authboundry approveGrant Authority to a User
authboundry policy create --principal alice --capability invoice.readDelegate Authority Temporarily
authboundry delegate create \ --from alice \ --to bob \ --capability invoice.approve \ --expires 2026-07-31 \ --reason "Alice on vacation"Audit a Principal's Activity
authboundry audit \ --principal alice \ --start 2026-09-01 \ --end 2026-09-30 \ --format csvNext Steps
- Read Quickstart for step-by-step setup
- Read Deployment for production setup