configure
Save connection settings to the config file (flag-driven, no prompts)
| Flag | Type | Required | Description |
|---|---|---|---|
--auth-type | string | No | auth type: basic, bearer, oauth2, oauth2-3lo |
--base-url | string | No | Confluence base URL (required unless --delete) |
--client-id | string | No | OAuth2 client ID |
--client-secret | string | No | OAuth2 client secret |
--cloud-id | string | No | Atlassian Cloud site ID for OAuth2 |
--delete | bool | No | delete the named profile |
--profile | string | No | profile name to save settings under |
--scopes | string | No | OAuth2 scopes (space-separated) |
--test | bool | No | test connection via GET /wiki/api/v2/spaces?limit=1 before saving |
--token | string | No | API token or bearer token (required unless --delete) |
--username | string | No | username for basic auth |
Example:
bash
cf configure