Labels
Labels
Section titled “Labels”Add, remove, and manage labels on Confluence pages.
Prerequisites
Section titled “Prerequisites”- Authenticated profile (
atlcli auth login) - Space permission: Edit permission to add/remove labels
Overview
Section titled “Overview”Labels help organize and categorize pages. Use them for:
- Content categorization (e.g.,
api,tutorial,reference) - Review status (e.g.,
needs-review,approved) - Team ownership (e.g.,
team-backend,team-frontend)
List Labels
Section titled “List Labels”View labels on a page:
atlcli wiki page label list --id 12345Output:
apidocumentationv2Add Labels
Section titled “Add Labels”Add one or more labels (labels are positional arguments):
# Single labelatlcli wiki page label add api --id 12345
# Multiple labelsatlcli wiki page label add api documentation v2 --id 12345Remove Labels
Section titled “Remove Labels”atlcli wiki page label remove deprecated --id 12345Bulk Label Operations
Section titled “Bulk Label Operations”Add or remove labels from multiple pages using CQL:
# Add label to pages matching CQL (preview first)atlcli wiki page label add archived --cql "space=OLD" --dry-run
# Add label (requires --confirm)atlcli wiki page label add archived --cql "space=OLD" --confirm
# Remove label from pages matching CQLatlcli wiki page label remove draft --cql "label=draft AND space=DEV" --confirmOptions:
| Flag | Description |
|---|---|
--id | Page ID for single-page operations |
--cql | CQL query for bulk operations |
--dry-run | Preview what would be affected |
--confirm | Required for bulk operations |
Find Pages by Label
Section titled “Find Pages by Label”Search for pages with specific labels:
# All pages with labelatlcli wiki search --label api
# In specific spaceatlcli wiki search --label api --space TEAM
# Multiple labels (AND)atlcli wiki search --label "api,v2"Sync Behavior
Section titled “Sync Behavior”atlcli syncs labels as part of page metadata:
In Frontmatter
Section titled “In Frontmatter”---atlcli: id: "12345" title: "API Reference" labels: - api - documentation - v2---
# API Reference...During Pull
Section titled “During Pull”Labels are included in frontmatter when pulling:
atlcli wiki docs pull ./docsDuring Push
Section titled “During Push”atlcli syncs labels from frontmatter to Confluence:
atlcli wiki docs push ./docsJSON Output
Section titled “JSON Output”atlcli wiki page label list --id 12345 --json{ "schemaVersion": "1", "pageId": "12345", "labels": [ {"name": "api", "prefix": "global"}, {"name": "documentation", "prefix": "global"}, {"name": "v2", "prefix": "global"} ], "total": 3}Label Naming
Section titled “Label Naming”- Labels are case-insensitive (
API=api) - Use hyphens for multi-word labels (
api-reference) - Avoid spaces (use hyphens instead)
- Maximum 255 characters
Use Cases
Section titled “Use Cases”Content Lifecycle
Section titled “Content Lifecycle”# Mark for reviewatlcli wiki page label add needs-review --id 12345
# After reviewatlcli wiki page label remove needs-review --id 12345atlcli wiki page label add approved --id 12345Team Organization
Section titled “Team Organization”# Assign ownershipatlcli wiki page label add team-backend component-api --id 12345
# Find team's pagesatlcli wiki search --label team-backend --space DOCSVersion Tracking
Section titled “Version Tracking”# Mark version-specific docsatlcli wiki page label add v2.0 --id 12345
# Find all v2 docsatlcli wiki search --label "v2.0"Related Topics
Section titled “Related Topics”
Jira and Confluence are trademarks of Atlassian Corporation Plc.
atlcli is not affiliated with, endorsed by, or sponsored by Atlassian.