Skip to content

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 md2cf

Configure credentials

Run the interactive setup:

bash
md2cf config

You will be prompted for:

SettingDescription
emailYour Atlassian account email
tokenAPI token from id.atlassian.com
baseUrlYour 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/12345

Create a new page in a space:

bash
md2cf ./docs/guide.md https://company.atlassian.net/wiki/spaces/ENG --create

Create a child page under an existing page:

bash
md2cf ./api.md https://company.atlassian.net/wiki/spaces/ENG/pages/12345 --create

Next 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

Released under the MIT License.