bezant-cli-0.3.0 is not a library.
bezant-cli
Command-line interface to the IBKR Client Portal Web API.
Wraps the Rust bezant crate in a clap-powered binary so
ops users, shell scripts, and ad-hoc sessions can poke the Gateway without
writing Rust or spinning up the HTTP sidecar.
Output is JSON on stdout; pass --pretty for indented JSON. Errors land on
stderr with a non-zero exit code.
Install
Until the crate is on crates.io:
Then make sure the Client Portal Gateway is running locally (via
docker compose up from the repo root, or the official IBKR installer).
Common uses
# Check session state
# List available accounts
# Account summary
# All positions (pagination handled for you)
# Ticker → conid lookup
# Keep the session alive (useful in a cron)
Environment
| Variable | Default | Meaning |
|---|---|---|
IBKR_GATEWAY_URL |
https://localhost:5000/v1/api |
Gateway base URL |
BEZANT_REJECT_INVALID_CERTS |
unset (accepts self-signed) | Set to 1 to enforce TLS cert validation |
RUST_LOG |
warn |
Standard tracing env-filter |
License
Dual-licensed under MIT or Apache-2.0 at your option.