TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/groniz/groniz-cli/llms.txt
Use this file to discover all available pages before exploring further.
groniz auth command group handles authentication with the Groniz platform. Use auth login to start an OAuth2 device flow and store credentials locally, auth logout to remove them, and whoami to confirm which account the CLI is currently acting as.
groniz auth login
Starts an OAuth2 device-flow authentication. The CLI prints a short code and a verification URL, waits for you to approve the request in your browser, then saves a long-lived credential to disk.
Open the URL shown in your terminal
The CLI prints a verification URL and a one-time code. Open the URL in any browser and enter the code when prompted.
~/.groniz/credentials.json and are read automatically by every subsequent command.
Example output
groniz auth logout
Removes the stored credentials from ~/.groniz/credentials.json. After running this command, all CLI commands that require authentication will fail until you run groniz auth login again.
groniz whoami
Returns the identity associated with the current credentials. Use this to verify that the correct account is active before running automated workflows.
API key alternative
Instead of the OAuth2 device flow you can authenticate with a personal API key. Export it as an environment variable before running any command:When both
~/.groniz/credentials.json and GRONIZ_API_KEY are present, the OAuth2 credentials from the login flow take priority.