Skip to content

File Format

Structure and format of local Confluence files.

Each page file has YAML frontmatter under the atlcli namespace:

---
atlcli:
id: "12345"
title: "Page Title"
---
# Page Title
Content here...
FieldDescription
idConfluence page ID (set automatically on pull/create)
titlePage title
FieldDescription
typeContent type: page (default) or folder
versionPage version number
lastModifiedLast modification timestamp

Folders use index.md files with type: folder:

---
atlcli:
id: "123456789"
title: "My Folder"
type: "folder"
---

Key differences from pages:

  • No content body - folder index.md files contain only frontmatter
  • type field required - must be "folder" to identify as folder
  • Directory structure - the folder’s children are sibling files and subdirectories

See Folders for full details.

docs/
├── .atlcli/ # Sync state directory
│ ├── config.json # Sync configuration
│ └── sync.db # SQLite sync database
├── index.md # Space home page
├── getting-started.md # Top-level page
├── guides/ # Confluence folder
│ ├── index.md # Folder metadata (type: folder)
│ ├── installation.md # Page inside folder
│ └── configuration.md # Page inside folder
└── api/ # Nested folder
├── index.md # Folder metadata
└── endpoints.md # Page inside folder
ConfluenceLocal
Pagepage-name.md
Page with childrenpage-name.md + page-name/ directory
Folderfolder-name/index.md (type: folder)
Page in folderfolder-name/page-name.md
  • Use lowercase with hyphens: api-reference.md
  • Folder metadata is always index.md (not the page name)
  • atlcli derives file names from page titles (sanitized)
  • File names don’t affect page titles (title comes from frontmatter)

Create a file with basic frontmatter:

---
atlcli:
title: "Getting Started"
---
# Getting Started
Welcome to our documentation.

After push, atlcli adds the id field automatically.

A synced page with all metadata:

---
atlcli:
id: "123456789"
title: "API Authentication"
version: 12
lastModified: "2025-01-14T10:30:00Z"
labels:
- api
- security
- v2
---
# API Authentication
This guide covers authentication methods...
  • Folders - Folder structure and index.md files
  • Sync - How atlcli syncs files with Confluence
  • Macros - Markdown syntax for Confluence macros
Jira and Confluence are trademarks of Atlassian Corporation Plc. atlcli is not affiliated with, endorsed by, or sponsored by Atlassian.