CLI Reference
The binboi command-line tool manages your tunnels and account.
Global Flags
| Flag | Description |
|--------------|--------------------------------------------------------------|
| --server | Override the server URL (default https://api.binboi.com) |
| --config | Path to config file (default ~/.binboi/config.json) |
| --quiet | Reduce output |
| --json | Output as JSON |
| -h, --help | Show help for any command |
Commands
binboi login
Authenticate with a Personal Access Token.
binboi login --token binboi_pat_xxx_yyyGenerate tokens at binboi.com/dashboard/access-tokens.
binboi logout
Remove the saved token from ~/.binboi/config.json.
binboi logoutbinboi whoami
Show the currently authenticated account.
binboi whoamibinboi http
Open an HTTP/HTTPS tunnel to a local port.
binboi http 3000
binboi http 3000 --subdomain myapp
binboi http 3000 --region eu-fraFlags:
| Flag | Description |
|--------------------------|------------------------------------------------------|
| --subdomain <name> | Reserve a stable subdomain (Pro+) |
| --region <code> | Pick a region (default eu-fra) |
| --hostname <host> | Custom domain (Pro+) |
| --basic-auth user:pass | Require HTTP basic auth on the public URL |
| --inspect | Open the local inspector at http://localhost:4040 |
binboi tcp
Open a raw TCP tunnel for databases, SSH, game servers, and other non-HTTP services.
binboi tcp 5432The CLI prints the assigned tcp://host:port endpoint.
binboi tunnels
List your active tunnels.
binboi tunnels
binboi tunnels --jsonbinboi tokens
Manage Personal Access Tokens from the CLI.
binboi tokens list
binboi tokens revoke <token-id>binboi update
Check for and install CLI updates.
binboi updatebinboi version
Print the CLI version.
binboi versionConfiguration File
Located at ~/.binboi/config.json:
{
"server": "https://api.binboi.com",
"token": "binboi_pat_xxx...",
"default_region": "eu-fra"
}You can edit this directly or use binboi config set <key> <value>.
Exit Codes
| Code | Meaning | |------|-----------------------| | 0 | Success | | 1 | General error | | 2 | Authentication failed | | 3 | Quota exceeded | | 4 | Network error |