Technical Reference
gram whoami
The whoami command displays information about the currently configured
profile, including organization details, project settings, and API key scopes.
If no profile is configured, the command will indicate that no profile is set up. Run gram auth to authenticate and create a profile.
Display current profile information:
gram whoamiThis command shows:
- Organization details
- Target project details
- API key scopes
- All projects available to the profile
Output as JSON for scripting:
gram whoami --jsonOptions
Section titled “Options”Output the profile information as JSON. This is useful for scripting and automation.
gram whoami --jsonapi-key
Section titled “api-key”Verify a specific API key instead of the one stored in the current profile.
gram whoami --api-key MY_API_KEYThe API key can also be set via the GRAM_API_KEY environment variable.