contox whoami
Show the current authentication status and configuration details. Use this command to verify that the CLI is properly configured and authenticated.
Usage
bash
contox whoami
Options
This command has no options.
Examples
Check your current auth status:
bash
contox whoami
Example output:
Config file: /Users/you/.contoxrc
API URL: https://contox.dev
API Key: ctx_abc...456
Auth: Authenticated
What it shows
| Field | Description |
|---|---|
| Config file path | Location of the ~/.contoxrc file being used |
| API URL | The Contox API endpoint the CLI is connecting to |
| Masked API key | Your API key with most characters hidden for security |
| Auth status | Whether the API key is valid and the connection is working |
Notes
- If you see "Not authenticated", run
contox login -k <your-api-key>first. - The API key is displayed in a masked format (only the first few and last few characters are shown) for security.
- This command is useful for debugging configuration issues, especially when working with multiple environments or config sources.