login
Save an API key and create a named profile. Alias forconfig set.
Options
| Option | Description |
|---|---|
--api-key <key> | API key (skips interactive prompt) |
--base-url <url> | Base URL override (defaults to production) |
--name <name> | Custom profile name (auto-derived from org name if omitted) |
--skip-verify | Save without verifying the key against the API |
Behavior
- Prompts for API key (masked input) unless
--api-keyis provided - Validates the key against the Codika platform API (unless
--skip-verify) - Stores profile metadata: org ID, org name, key name, scopes, creation date, expiry date
- Sets the new profile as active
Examples
whoami
Show the current authenticated identity.Options
| Option | Description |
|---|---|
--json | Output as JSON |
Behavior
Validates against the platform API for fresh data. Falls back to cached profile data if the network call fails.Output
use
Switch the active profile or list all profiles.Arguments
| Argument | Description |
|---|---|
[name] | Profile name to switch to (optional — lists profiles if omitted) |
Behavior
- No argument: Lists all profiles with an active marker (bullet)
- With argument: Switches the active profile
Examples
Output (list mode)
logout
Remove a profile.Arguments
| Argument | Description |
|---|---|
[name] | Profile name to remove (defaults to active profile) |
Behavior
Removes the specified profile. If it was the active profile, switches to the next available profile.config set
Save API key and base URL. Same aslogin.
login.
config show
Display all stored profiles.Output
config clear
Remove configuration.Options
| Option | Description |
|---|---|
--profile <name> | Remove only this profile (clears all if omitted) |