Bulwark|Docs

CLI Reference

The Bulwark CLI provides commands for authentication, installation, and hook management.

Commands

CommandDescription
bulwark loginAuthenticate with your Bulwark account
bulwark logoutRemove stored credentials
bulwark installRegister Bulwark hooks for your coding tools
bulwark uninstallRemove Bulwark hooks from your coding tools
bulwark updateUpdate Bulwark to the latest version
bulwark hookProcess tool call events from coding tools
bulwark hook claudeHandle Claude Code hook events (default)
bulwark hook ampHandle Amp permission delegation events

Global Flags

These flags work with all commands:

FlagDescription
--help, -hShow help for a command
--version, -vShow version number

Exit Codes

CodeMeaning
0Success / Allow action
1Error
2Deny action

Environment Variables

VariableDescription
BULWARK_API_URLOverride 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.