Install
Confirm the install
Log in
bachs login prints a short code, opens your browser, and waits. Approve the request in the dashboard and the CLI receives its credentials.
Connect this machine
Response
~/.config/bachs/config.json with owner-only permissions. It is separate from the keys you create by hand, so you can revoke it from the developer portal without touching your server’s credentials.
Add --sandbox to pair against the sandbox rather than production:
Pair against sandbox
What you can do
Forward events to localhost
Receive live webhook events on your own machine while you build. No public URL and no tunnel.
Emit a sample event
Exercise your handler without making a real payment. Sandbox only.
Inspect and replay events
List recent events with how their delivery went, and redeliver the ones that failed.
Call any API operation
Every endpoint in the API is a command, from
bachs customers list to bachs payouts get.Environments
Your stored credentials decide which environment the CLI talks to.bachs login pairs against production by default, and bachs login --sandbox pairs against the sandbox.
Check which one you are on
Response
sk_sandbox_ targets the sandbox and sk_live_ targets production. There is no separate flag to keep in step with the key you are using.
Build against the sandbox first. Going live is a key swap, not a code change.
Configuration
Credentials resolve in this order, so a one-off command can target another account without disturbing what you have stored:
Two environment variables change where things go:
BACHS_API_KEYsupplies credentials without a config file.BACHS_CONFIG_DIRmoves the config file somewhere other than~/.config/bachs.
Next steps
- Command reference for every command, flag, and argument.
- Test webhooks locally to forward live events to your machine and verify a real signature.
- Coming soon for what we are building next.

