Configuration
md2cf stores credentials in ~/.md2cf/config.json.
Interactive setup
The easiest way to configure md2cf is the interactive prompt:
bash
md2cf configThis asks for your email, API token, and Confluence base URL, then writes them to disk.
Manual set / get
bash
md2cf config set email user@company.com
md2cf config set token YOUR_API_TOKEN
md2cf config set baseUrl https://company.atlassian.netRetrieve a single value:
bash
md2cf config get emailList current config
bash
md2cf config listThe token is masked in the output for security.
Reset config
Delete all stored configuration:
bash
md2cf config resetConfig file path
Show the path to the config file:
bash
md2cf config pathDefault location: ~/.md2cf/config.json
Config fields
| Field | Required | Description |
|---|---|---|
email | Yes | Atlassian account email |
token | Yes | API token from id.atlassian.com |
baseUrl | Yes | Confluence instance URL (e.g. https://company.atlassian.net) |