cops auth login walks you through a series of prompts to configure a named profile. Each profile stores the base URLs and credentials for one or more Atlassian Data Center products. After saving, the new profile is automatically set as the active profile.
Usage
Interactive wizard
The wizard prompts for:- Profile name — a short identifier you choose (e.g.
dc-prod,staging). If a profile with this name already exists, it is overwritten. - For each product (
jira,confluence,bitbucket,bamboo) — whether to configure it, and if so:- Base URL (e.g.
https://jira.example.com) - Auth type:
bearer(default) orbasic - Credentials for the chosen auth type
- Base URL (e.g.
n. Only the products you configure will have entries in the saved profile.
Auth types
Bearer token (default)
Bearer token (default)
Sends your Personal Access Token in the
Authorization: Bearer <pat> header.This is the recommended auth type for Atlassian Data Center. Generate a PAT in your Atlassian product under Profile > Personal Access Tokens.Basic auth
Basic auth
Sends your username and token as a Base64-encoded
Authorization: Basic <base64(username:token)> header.Use basic auth when your instance does not support PATs or when you need to authenticate with a service account username and password.Where credentials are stored
Profiles are saved to a singleconfig.json file:
| Platform | Path |
|---|---|
| Linux / macOS | ~/.config/cops/config.json |
| Windows | %APPDATA%\cops\config.json |
0600 (owner read/write only) every time it writes the config.
Related
cops auth profiles
List all configured profiles and see which is active.
cops auth use
Switch the active profile.
Auth profiles guide
In-depth guide to profile structure and management.
Security
PAT rotation, file permissions, and credential hygiene.
