jira config init¶
- Usage:
jira config init [flags]
Create a config file with one Jira profile and token-auth metadata. Use it for a quick bootstrap when you want to add the credential later with jira auth login.
The command requires a Jira base URL and account email. It writes config only; no secret is stored and Jira is not contacted.
Safety¶
--dry-run¶
Validate and preview the config without writing the file
Configuration¶
--base-url <URL>¶
Jira base URL
--email <EMAIL>¶
Jira account email
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 |
|---|---|---|
auth_type |
string | |
base_url |
string | |
dry_run |
boolean | |
profile |
string | |
stored_auth |
boolean |
Examples¶
jira config init --base-url https://acme.atlassian.net --email me@example.com
jira config init --profile work --base-url https://acme.atlassian.net --email me@example.com # (1)!
jira --config ./jira.toml config init --base-url https://acme.atlassian.net --email me@example.com # (2)!
- Create config under a named profile
- Create config at an explicit path