ezgh auth login [flags]Log in with your EZGH Cloud account. By default this opens your browser (authorization code with PKCE, through a redirect to a port on 127.0.0.1); --device prints a URL and a code to enter on any other device instead, for SSH sessions and machines without a browser.
The login belongs to the profile (--profile, EZGH_PROFILE, or the default profile), which is created if it doesn’t exist. Its tokens go in the OS keychain, or a file only you can read where there’s no keychain. The access token is refreshed automatically.
EZGH SSO users: when the browser approving the login is signed in to the console through EZGH SSO (as a bot), the login is a temporary key instead. It acts as that bot, is valid until your EZGH SSO console session ends (at most 12 hours, sooner if you sign out of the portal or lose access), and can’t be refreshed: run ezgh auth login again when it expires.
Part of ezgh auth.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--device |
boolean | log in with a code on another device (no browser needed here) | |
--no-browser |
boolean | print the login URL instead of opening a browser |
This command also takes the global flags.