Skip to main content

CDS2MD

pip Version Build Status

Overview

This utility can be used to convert Confluence® Data Center pages to Markdown. Atlassian's Confluence Data Center is scheduled for end-of-life in 2029. This tool can be used in an attempt migrate data from Confluence Data Center instances to another location.

Requirements

Installation

This tool can be installed using pip or pipx:

pipx install cds2md
 (or)
pip install -U cds2md
 (or)
python -m pip install -U cds2md

Usage

This tool can be invoked from a command line using:

cds2md --help
 (or)
python -m cds2md --help

A minimal example run is as follows:

export CDS2MD_CONFLUENCE_TOKEN=TOKEN
export CDS2MD_CONFLUENCE_SPACE_KEY=MYSPACE
export CDS2MD_CONFLUENCE_URL=https://wiki.example.com/
cds2md

This will fetch page information from a Confluence space and store this data into a local cache folder (.cds2md-cache/). Once all pages are fetched, content will be converted to Markdown and placed in the output directory (output/).

Options

The following is a list of available options:

positional arguments:
  {all,connection-check,fetch,process}
                        action to perform (default: all)

options:
  -h, --help            show this help message and exit
  --ca-certificate CA_CERTIFICATE
                        ca certificate to use when communicating with Confluence
  --cache CACHE         path to store fetch cached data
  --confluence-space-key CONFLUENCE_SPACE_KEY
                        space to query for pages
  --confluence-token CONFLUENCE_TOKEN
                        token used to query the Confluence instance
  --confluence-token-file CONFLUENCE_TOKEN_FILE
                        file which holds a Confluence token to use
  --confluence-token-stdin
                        pass in the token via the standard input stream
  --confluence-url CONFLUENCE_URL
                        url of the Confluence data center instance to interact with
  --cql-mode            search for pages with cql api over content api
  --debug               enabling debugging logs
  --development         configure to operate in a development state
  --header, -H HEADER   http headers to include in requests
  --flat                ignore any Confluence-detected hierarchy structure
  --ignore-cache        ignore any cached content
  --ignore-tls          ignore all TLS checks when communicating with Confluence
  --jira-url JIRA_URL   base url to use for any jira links
  --output OUTPUT       path to output markdown content into
  --timeout TIMEOUT     timeout for connection REST requests to Confluence
  --tweak-admonition-type {default,docusaurus,github,gitlab,myst,plain}
                        admonition formatting to use (default: default)
  --tweak-html-images   force all images to be generated as html-based images
  --tweak-html-tables   force all tables to be generated as html-based tables
  --version             show program's version number and exit
  --wrap WRAP           hint to the number of characters to wrap to

The CDS2MD project is unaffiliated with Atlassian.
Atlassian is a registered trademark of Atlassian Pty Ltd.
Confluence is a registered trademark of Atlassian Pty Ltd.

Metadata

Release files for cds2md 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cds2md 0.1.0
File Size Uploaded Provenance Actions
cds2md-0.1.0.tar.gz 24.2 kB With provenance Details for cds2md-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cds2md 0.1.0
File Interpreter ABI Platform Actions
cds2md-0.1.0-py3-none-any.whl Python 3 none any Details for cds2md-0.1.0-py3-none-any.whl

Total release size: 51.7 kB

Release files / cds2md-0.1.0.tar.gz

Download URL cds2md-0.1.0.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
86a3656f41848806825441657850e085bb1e77d28c546a3d2c69aecbde941258
BLAKE2b-256 checksum
How to use checksums
6fd9ca102c505563f1d0ab1b3eccf7c9ee42d1b185365250502254284acf3b3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / cds2md-0.1.0-py3-none-any.whl

Download URL cds2md-0.1.0-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca155be29eb41d6b477b21014676f21df9179030e1fb4a7140792b0a06622051
BLAKE2b-256 checksum
How to use checksums
b49e8902bf2c854d61f0926184957d70ef4fd78e7f96e5690f2e18fb7ced4393
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for cds2md 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cds2md-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page