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 as a Claude Code hook |
bulwark uninstall | Remove Bulwark hooks from Claude Code |
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.