Sign in to Anona Compute.
Without flags, anona-compute login starts a device sign-in (RFC 8628): it prints a
URL and a code, opens the browser, and waits while you sign in to the
dashboard, check the code, pick the organization and approve. The CLI then
holds a dashboard session for this machine and trades it for gateway tokens
that last 15 minutes. The session secret is stored in the OS keychain when
one is available, else in credentials.json (mode 0600) next to config.toml;
ANONA_COMPUTE_CREDENTIAL_STORE=file|keyring forces one. anona-compute logout revokes it.
--with-api-key reads an API key (e2b_ + lowercase hex) from stdin and saves
it to the profile instead.
The dashboard is --web-url, else ANONA_COMPUTE_WEB_URL, else the profile's web_url,
else https://app.<domain>.
Usage
anona-compute login [flags]
Flags
| Flag | Type | Description |
|---|---|---|
--help, -h | help for login | |
--no-browser | print the sign-in URL but do not open a browser | |
--org | string | organization slug to act in (default: the one picked in the browser) |
--web-url | string | dashboard URL (env ANONA_COMPUTE_WEB_URL; default https://app.<domain>) |
--with-api-key | read an API key from stdin instead of signing in through the browser |
--api-key, --api-url, --json, --output, --profile, --request-timeout, --verbose) work on every command; see anona-compute.