A CLI tool to export your ClickUp Docs and Wikis to local markdown files, preserving the full page hierarchy.
- 📁 Preserves hierarchy - Nested pages become nested folders
- 📝 Clean markdown - Exports content in standard markdown format
- ⚡ Fast & reliable - Handles rate limiting and retries automatically
- 🔒 Secure - Your token stays local, never stored
- 🎯 Flexible - Export all docs or a single doc
git clone https://github.com/abderrahmaneMustapha/clickup-docs-bulk-export.git
cd clickup-docs-bulk-export
npm install
npm run buildThen run the CLI:
node dist/cli.js --token YOUR_TOKEN --workspace YOUR_WORKSPACE_IDnpm install -g clickup-docs-exporter
clickup-docs-exporter --token YOUR_TOKEN --workspace YOUR_WORKSPACE_IDclickup-docs-exporter \
--token pk_12345678_ABCDEFGHIJKLMNOP \
--workspace 1234567 \
--output ./my-docsclickup-docs-exporter \
--token pk_12345678_ABCDEFGHIJKLMNOP \
--workspace 1234567 \
--doc abc123 \
--output ./my-docs| Option | Alias | Required | Description |
|---|---|---|---|
--token |
-t |
Yes | Your ClickUp API token |
--workspace |
-w |
Yes | ClickUp Workspace ID |
--output |
-o |
No | Output directory (default: ./clickup-docs) |
--doc |
-d |
No | Export single doc by ID |
--verbose |
-v |
No | Show detailed progress |
- Log in to ClickUp
- Click your avatar in the upper-right corner and select Settings
- In the sidebar, click Apps
- Under API Token, click Generate (or Regenerate if you already have one)
- Click Copy to copy your token
Your token will look like: pk_12345678_ABCDEFGHIJKLMNOP
📖 For more details, see the official ClickUp Authentication documentation.
- Open ClickUp in your browser
- Go to any space in your workspace
- Look at the URL:
https://app.clickup.com/1234567/... - The number after
app.clickup.com/is your Workspace ID
The exporter creates a folder structure that mirrors your ClickUp docs:
my-docs/
├── getting-started/
│ ├── index.md # Main page content
│ ├── installation.md # Child page (no sub-pages)
│ └── configuration/
│ ├── index.md # Page with children
│ ├── basic.md
│ └── advanced.md
├── api-reference/
│ └── index.md
└── changelog.md
Each markdown file includes frontmatter:
---
title: "Getting Started"
exported_at: "2026-01-28T12:00:00.000Z"
---
Your content here...- Backup - Keep local copies of your documentation
- Migration - Move docs to another platform
- Offline access - Read docs without internet
- Version control - Track changes with git
- AI training - Use your docs as context for AI tools
If you want to publish your ClickUp docs as a beautiful, SEO-optimized website without managing infrastructure, check out WikiBeem.
WikiBeem automatically syncs your ClickUp docs and publishes them with:
- Custom domains
- SEO optimization
- Beautiful themes
- Search functionality
- Analytics
- Node.js 18 or higher
- ClickUp API token with read access
MIT © Toumi Abderrahmane
Contributions are welcome! Please open an issue or submit a pull request.