CLI Reference
The Bulwark CLI provides commands for authentication, installation, and hook management.
Commands
| Command | Description |
|---|---|
bulwark login | Authenticate with your Bulwark account |
bulwark logout | Remove stored credentials |
bulwark install | Register Bulwark hooks for your coding tools |
bulwark uninstall | Remove Bulwark hooks from your coding tools |
bulwark update | Update Bulwark to the latest version |
bulwark hook | Process tool call events from coding tools |
bulwark hook claude | Handle Claude Code hook events (default) |
bulwark hook amp | Handle Amp permission delegation events |
Global Flags
These flags work with all commands:
| Flag | Description |
|---|---|
--help, -h | Show help for a command |
--version, -v | Show version number |
Exit Codes
| Code | Meaning |
|---|---|
0 | Success / Allow action |
1 | Error |
2 | Deny action |
Environment Variables
| Variable | Description |
|---|---|
BULWARK_API_URL | Override the API endpoint (for development) |
Configuration
Bulwark stores configuration in:
- macOS:
~/.config/bulwark/ - Linux:
~/.config/bulwark/ - Windows:
%APPDATA%\bulwark\
Credentials are stored securely in your system keychain.