jira auth switch¶
- Usage:
jira auth switch PROFILE [flags]
Set the config file's default profile. Use it when most upcoming commands should target a different Jira site or account without passing --profile each time.
This changes local config only. It does not verify credentials or contact Jira. --dry-run resolves the target profile and reports the switch without writing the config file.
Safety¶
--dry-run¶
Resolve and preview the switch without writing config
Output fields¶
With --output json, the response envelope's data object carries these fields. Run jira agent schema for the full machine-readable schema.
| Field | Type | Description |
|---|---|---|
active |
string | |
dry_run |
boolean | |
previous |
string |
Examples¶
jira auth switch work
jira auth switch work --output=json # (1)!
jira auth switch work --dry-run --output=json # (2)!
- Return the new active profile as JSON
- Resolve and preview the switch without writing config