MCPcopy Index your code
hub / github.com/Spenhouet/confluence-markdown-exporter

github.com/Spenhouet/confluence-markdown-exporter @5.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.2.1 ↗ · + Follow
949 symbols 2,794 edges 47 files 500 documented · 53%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

confluence-markdown-exporter

<em>The confluence-markdown-exporter exports Confluence pages in Markdown format. This exporter helps in migrating content from Confluence to platforms that support Markdown e.g. Obsidian, Gollum, Azure DevOps (ADO), Foam, Dendron and more.</em>

Build Python package Build and publish to PyPI PyPI version Docker Hub version Documentation

What it does

Exports individual pages, pages with descendants, or entire Confluence spaces via the Atlassian API into clean Markdown. Skips unchanged pages by default, re-exporting only what has changed since the last run.

Supported targets include Obsidian, Gollum, Azure DevOps (ADO) wikis, Foam, Dendron, and anything else that consumes Markdown.

Full feature list, configuration reference, and target-system presets live in the documentation site.

Quickstart

1. Install

macOS and Linux

curl -LsSf uvx.sh/confluence-markdown-exporter/install.sh | sh

Windows

powershell -ExecutionPolicy ByPass -c "irm https://uvx.sh/confluence-markdown-exporter/install.ps1 | iex"

Installing a specific version:

curl -LsSf uvx.sh/confluence-markdown-exporter/5.2.1/install.sh | sh

Alternative install methods (PyPI via pip / uv, prebuilt Docker image) are covered in the installation docs and the Docker page.

Using the Docker image? Steps 2 and 3 below use the local cme CLI. Inside the Docker image there is no interactive cme config menu; you supply a pre-defined config (mounted JSON file or CME_* environment variables) and run a single export command per container invocation. See the Docker page for the non-interactive flow.

2. Authenticate

Set Confluence credentials interactively (URL, username, API token / PAT):

cme config edit auth.confluence

See Authentication for token scopes and Jira setup.

3. Export

# A single page
cme pages <page-url>

# A page and all its descendants
cme pages-with-descendants <page-url>

# An entire space
cme spaces <space-url>

# Every space of an organisation
cme orgs <base-url>

Output goes to the configured export.output_path (current directory by default).

Documentation

The full documentation lives at https://spenhouet.github.io/confluence-markdown-exporter/ and includes:

Contributing

If you would like to contribute, please read our contribution guideline.

License

This tool is an open source project released under the MIT License.

Core symbols most depended-on inside this repo

get_settings
called by 47
confluence_markdown_exporter/utils/app_data_store.py
from_json
called by 25
confluence_markdown_exporter/confluence.py
register
called by 23
confluence_markdown_exporter/utils/page_registry.py
_escape_template_placeholders
called by 19
confluence_markdown_exporter/confluence.py
sanitize_filename
called by 17
confluence_markdown_exporter/utils/export.py
sanitize_key
called by 17
confluence_markdown_exporter/utils/export.py
get_thread_confluence
called by 15
confluence_markdown_exporter/api_clients.py
reset
called by 14
confluence_markdown_exporter/utils/page_registry.py

Shape

Method 605
Function 179
Class 114
Route 51

Languages

Python98%
TypeScript2%

Modules by API surface

tests/unit/test_confluence.py169 symbols
confluence_markdown_exporter/confluence.py162 symbols
tests/unit/utils/test_lockfile.py66 symbols
tests/unit/utils/test_export.py62 symbols
tests/unit/utils/test_app_data_store_env.py44 symbols
confluence_markdown_exporter/utils/app_data_store.py36 symbols
tests/unit/test_api_clients.py26 symbols
confluence_markdown_exporter/utils/config_interactive.py25 symbols
confluence_markdown_exporter/api_clients.py25 symbols
tests/unit/test_template_placeholders.py23 symbols
tests/unit/utils/test_table_converter.py22 symbols
tests/unit/test_nbsp_fix.py22 symbols

For agents

$ claude mcp add confluence-markdown-exporter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page