Skip to content
Platform Status

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:

Terminal window
gram whoami

This command shows:

  • Organization details
  • Target project details
  • API key scopes
  • All projects available to the profile

Output as JSON for scripting:

Terminal window
gram whoami --json

Output the profile information as JSON. This is useful for scripting and automation.

Terminal window
gram whoami --json

Verify a specific API key instead of the one stored in the current profile.

Terminal window
gram whoami --api-key MY_API_KEY

The API key can also be set via the GRAM_API_KEY environment variable.