infercrane login signs the CLI in through the dashboard. You approve it once in the browser,
with the account you already use there, and no key is pasted or copied.
How it works
- The CLI asks the control plane for a sign-in. It gets a short code to show you and a secret device code that only the CLI keeps.
- The CLI opens
/cli/authorize?code=…in the dashboard. The page shows the same code and the device asking (host name, operating system, CLI version). Approve only if the codes match and you started the sign-in. - On approval, the control plane issues a new key for your organization with your role and scopes, never more. The CLI receives it once, on its next check, and the sign-in cannot be used again.
Where the key is kept
The key is written to the keychain on standard input, never as a command-line argument. Set
INFERCRANE_CREDENTIAL_STORE=file to always use the config file, or keychain to fail instead of
falling back. INFERCRANE_API_KEY still overrides a stored key, which suits CI.
Keys are scoped, expiring, and revocable
- Each key belongs to one organization and carries the approving person’s role and scopes.
- It expires after 90 days. Run
infercrane loginagain after that. infercrane logoutrevokes the key on the control plane and removes it from this machine. A key pasted withinfercrane initstays active, because a service account may be shared; revoke it withinfercrane principal revoke ID.- Settings → CLI sessions in the dashboard lists your CLI sessions with their device, last use, and expiry, and revokes any of them. Administrators see every member’s sessions.
- Removing a member from the organization does not revoke their CLI sessions. Revoke them in Settings → CLI sessions first.
Dashboard links
Commands that create or change something end with a link to the same page in the dashboard:deploy, apply, endpoint create, rollout, optimize create, optimize approve,
optimize report, auth status, and login print one. JSON output is unchanged.
Open a page directly:
--console-urlonlogin, or theINFERCRANE_CONSOLE_URLenvironment variable;- the dashboard the control plane advertises (
INFERCRANE_CONSOLE_URLon the server); - the dashboard saved in the context by the last
login; https://console.infercrane.comwhen the control plane is a hostedinfercrane.comaddress.