Skip to main content
This page covers the Account commands that aren’t organization-related. See bonya org for switching organizations and bonya login for authenticating.

bonya whoami

Shows where the API key, endpoint, and organization id currently in effect each come from.
whoami makes no network call. It only reports which source — --flag, environment variable, bonya login (saved), or (not set) — each setting resolves from, following the same precedence order every other command uses. It never confirms the key is actually valid; use bonya list or another real command for that.
The API key’s value is never printed, even when it’s set — only its source. Endpoint and organization id print their actual saved value alongside the source, since those aren’t secret.

bonya logout

Removes the API key (and endpoint/organization id) saved by bonya login, by deleting the config file.
This only affects the saved login — a --api-key flag or BONYA_API_KEY environment variable still works after logout, since those take priority over (and don’t depend on) the saved config.

bonya version

Alias: v
Prints the installed CLI version.
bonya --version prints the same string, and the version is also folded into bonya --help’s output next to the -h flag. Note that -v is short only for the version subcommand (bonya v) — the root --version flag itself has no single-letter shorthand.