cops confluence page commands let you inspect Confluence pages and validate their readiness for release documentation. They call the Confluence REST API v2 (/rest/api/content).
cops confluence page get
cops confluence page get
Fetch details for a single Confluence page by its numeric page ID.Alias:
cops confluence page detailsUsage
Arguments
| Argument | Required | Description |
|---|---|---|
pageId | Yes | Numeric Confluence page ID |
Flags
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
id, title, type, spaceKey, spaceName, version, updatedAtExamples
cops confluence page content
cops confluence page content
Fetch content metadata for a page by its numeric page ID. Returns body size and ancestor count in addition to standard page fields.
Usage
Arguments
| Argument | Required | Description |
|---|---|---|
pageId | Yes | Numeric Confluence page ID |
Flags
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
id, title, spaceKey, version, updatedAt, bodyLength, ancestorCountExamples
cops confluence page by-title
cops confluence page by-title
Find a Confluence page by its space key and exact title.Alias:
cops confluence page titleUsage
Flags
Confluence space key (e.g.
OPS, ENG).Exact page title to search for.
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
id, title, type, spaceKey, spaceName, version, updatedAtIf no page matches, the output is empty and the found metadata field is false.Examples
cops confluence page search
cops confluence page search
Search Confluence pages using a CQL (Confluence Query Language) query.Alias:
cops confluence page findUsage
Flags
CQL query string. See the Confluence CQL documentation for syntax.
Maximum number of pages to return.
Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
id, title, type, spaceKey, version, updatedAtExamples
cops confluence page freshness
cops confluence page freshness
Check whether a Confluence page was updated within a maximum number of days. Exits with code
1 if the page is stale.Usage
Arguments
| Argument | Required | Description |
|---|---|---|
pageId | Yes | Numeric Confluence page ID |
Flags
Maximum allowed page age in days. The command exits with code
1 if the page is older than this threshold.Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
id, title, updatedAt, ageDays, maxAgeDays, freshExit codes
| Code | Meaning |
|---|---|
0 | Page is within the age threshold |
1 | Page is older than --maxAgeDays |
Examples
cops confluence page checks
cops confluence page checks
Run a suite of release-doc health checks against a Confluence page: verifies the page exists, confirms required section headings are present, and checks that the page is not stale. Exits with code
1 if any check produces a warn or fail result.Usage
Flags
Confluence space key (e.g.
OPS).Exact title of the Confluence page to check.
Comma-separated list of text fragments or section headings that must appear in the page body (case-insensitive). For example:
"Overview,Rollback Steps,Sign-off".Maximum allowed page age in days. Pages older than this threshold produce a
warn result.Output format:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
check, status, detailsEach row represents one check. The status value is pass, warn, or fail.| Check | Description |
|---|---|
page_exists | Verifies the page was found in the given space |
required_sections | Verifies all --requiredSections fragments appear in the page body |
page_freshness | Verifies the page was updated within --maxAgeDays |
Exit codes
| Code | Meaning |
|---|---|
0 | All checks passed |
1 | One or more checks produced warn or fail |
Examples
If the page is not found, only the
page_exists check row is emitted and the command exits immediately with code 1.Related
cops confluence
Overview of all Confluence commands and common flags.
Release gates
Use page checks as gates in a release workflow.
