Attachments
Attachments
Section titled “Attachments”Sync images and files with Confluence pages.
Prerequisites
Section titled “Prerequisites”- Authenticated profile (
atlcli auth login) - Space permission: View for pull, Edit for push operations
Quick Start
Section titled “Quick Start”# Pull pages (attachments included by default)atlcli wiki docs pull ./docs
# Pull without attachments (faster)atlcli wiki docs pull ./docs --no-attachments
# Push - atlcli automatically uploads new/changed attachmentsatlcli wiki docs push ./docsImage References
Section titled “Image References”Reference images in markdown:
On push, atlcli uploads the image as an attachment and updates the reference.
Pull Attachments
Section titled “Pull Attachments”Attachments are downloaded by default during pull. To skip them:
atlcli wiki docs pull ./docs --no-attachmentsAttachments are saved to a directory named after the page (e.g., page-name/ alongside page-name.md).
Push Attachments
Section titled “Push Attachments”New or modified local files are automatically uploaded on push.
Supported Formats
Section titled “Supported Formats”- Images: PNG, JPG, GIF, SVG
- Documents: PDF, DOCX, XLSX
- Archives: ZIP
Size Limits
Section titled “Size Limits”Attachments are subject to your Confluence instance limits (typically 25MB per file).
Examples
Section titled “Examples”Minimal: Add an Image to a Page
Section titled “Minimal: Add an Image to a Page”# Architecture Overview
Here's our system diagram:
On push, atlcli uploads architecture.png and converts the reference to a Confluence attachment link.
Advanced: Organize Attachments in Subdirectories
Section titled “Advanced: Organize Attachments in Subdirectories”docs/├── api-reference.md├── api-reference/│ └── images/│ ├── auth-flow.png│ └── request-lifecycle.svg└── getting-started.mdReference with relative paths:
# API Reference
## Authentication Flow
atlcli preserves the directory structure and uploads all referenced files.
Troubleshooting
Section titled “Troubleshooting”Attachment Not Uploading
Section titled “Attachment Not Uploading”Symptom: Image referenced in markdown not appearing in Confluence.
Causes:
- File path incorrect or file doesn’t exist
- File exceeds size limit
- Unsupported format
Fix: Verify the file exists at the referenced path. Check file size and format.
Broken Image After Pull
Section titled “Broken Image After Pull”Symptom: Image shows as broken link after pulling.
Cause: Attachment was deleted in Confluence or pull ran with --no-attachments.
Fix: Run atlcli wiki docs pull ./docs to re-download attachments.
Related Topics
Section titled “Related Topics”- Sync - Pull and push with attachment handling
- File Format - Attachment directory structure
- Export - Include attachments in DOCX exports