Get Space Pages
The space get commands download all pages in a Confluence space to a local directory in their native format. This works like space convert, but without converting to Markdown — pages are saved as raw ADF JSON or Storage HTML.
Use this when the target workflow is engineering analysis, migration research, or custom downstream processing rather than immediate Markdown output.
Get by key
acs2md space get by-key SPACE_KEY [flags]Examples
# Download all pages in ADF JSON format (default)
acs2md space get by-key DOCS
# Download pages in Storage HTML format
acs2md space get by-key DOCS --format storage
# Specify a custom output directory
acs2md space get by-key DOCS --output-dir ./my-export/
# Download only archived pages
acs2md space get by-key DOCS --status archivedFlags
| Flag | Short | Default | Description |
|---|---|---|---|
--format | -f | atlas_doc_format | Output format: atlas_doc_format (JSON) or storage (HTML) |
--output-dir | ./output/<space-key>/ | Output directory for downloaded pages | |
--status | -s | current | Filter pages by status |
--conflict-resolution | overwrite | How to handle filename conflicts |
Get by ID
acs2md space get by-id SPACE_ID [flags]Downloads all pages in a space using the numeric space ID. Same flags as by-key.
acs2md space get by-id 123456 --format storage --output-dir ./export/Output structure
Pages are saved to a directory tree that mirrors the space hierarchy:
output/DOCS/
getting-started.json
api-reference.json
guides/
quickstart.json
advanced-usage.jsonWhen using --format storage, files are saved with an .html extension instead.
When to use space get instead of space convert
- use
space getwhen you need native Confluence payloads - use
space convertwhen you need portable Markdown - use both when a migration or troubleshooting workflow needs native inspection first and Markdown output second
Last updated on