Getting Started
Prerequisites
- Node.js >= 24
- A Confluence Cloud instance (e.g.
https://company.atlassian.net) - An Atlassian API token — generate one at id.atlassian.com
Installation
Install md2cf globally so the md2cf command is available everywhere:
bash
npm install -g md2cfConfigure credentials
Run the interactive setup:
bash
md2cf configYou will be prompted for:
| Setting | Description |
|---|---|
| Your Atlassian account email | |
| token | API token from id.atlassian.com |
| baseUrl | Your Confluence instance URL (e.g. https://company.atlassian.net) |
Configuration is stored in ~/.md2cf/config.json. See the Configuration page for advanced options.
Your first sync
Update an existing Confluence page from a local Markdown file:
bash
md2cf ./README.md https://company.atlassian.net/wiki/spaces/ENG/pages/12345Create a new page in a space:
bash
md2cf ./docs/guide.md https://company.atlassian.net/wiki/spaces/ENG --createCreate a child page under an existing page:
bash
md2cf ./api.md https://company.atlassian.net/wiki/spaces/ENG/pages/12345 --createNext steps
- Configuration — manual config commands, config file location
- Core Usage — all CLI options, title resolution, remote sources
- Folder Sync — mirror a folder tree to Confluence