Authentication
grid login
Section titled “grid login”Sign in via Google OAuth. Opens a browser-based device flow. The token is stored
at ~/.cloudgrid/credentials.
grid login| Option | Description |
|---|---|
--no-browser |
Manual code-entry mode (for headless environments). |
--token <jwt> |
Provide a JWT directly (for testing). |
--no-telemetry |
Opt out of anonymous usage telemetry. |
grid logout
Section titled “grid logout”Sign out and clear local credentials. Clears ~/.cloudgrid/credentials and the
active grid setting.
grid logoutgrid whoami
Section titled “grid whoami”Show the current user and active grid: name, email, slug, active grid, and all grid memberships.
grid whoami| Option | Description |
|---|---|
--json |
Machine-readable JSON output. |
-o, --output <format> |
Output format. |
grid use
Section titled “grid use”Set the active grid for subsequent commands.
grid use [slug]| Argument | Description |
|---|---|
slug |
Grid slug to switch to. If omitted, shows the current active grid. |
grid use # show the active gridgrid use my-company # switch to the my-company grid