Confluence is a PowerShell module for interacting with the Atlassian Confluence Cloud REST API, both interactively and in automation.
It exposes pages, blog posts, folders, spaces, comments, labels, content properties, attachments, restrictions and more as PowerShell commands.
Every command is a thin wrapper over a single generic REST entry point (Invoke-ConfluenceRestMethod). Credentials and module configuration
are stored with the Context module, so you connect once and reuse the profile across sessions.
Install the module from the PowerShell Gallery:
Install-PSResource -Name Confluence
Import-Module -Name ConfluenceConnect with a scoped Atlassian API token, then call the resource commands. The token is kept as a SecureString in the Context vault.
# Connect and store a reusable, named credential profile
$token = Read-Host -AsSecureString # a scoped Atlassian API token
Connect-Confluence -Site 'yoursite' -Username 'you@example.com' -Token $token -SpaceKey 'DOCS'
# Work with content
$space = Get-ConfluenceSpace -Key 'DOCS'
$page = New-ConfluencePage -SpaceId $space.id -Title 'Release notes' -Body '<p>Hello</p>'
Update-ConfluencePage -PageId $page.id -Body '<p>Updated</p>'
Get-ConfluencePageChild -PageId $page.idSee the examples folder for more, including managing contexts and pages.
The service-account token must be granted the module's required Confluence scopes — see SCOPES.md.
Documentation is published at psmodule.io/Confluence.
Use PowerShell help and command discovery for module details:
Get-Command -Module Confluence
Get-Help New-ConfluencePage -ExamplesIssues and pull requests are welcome. Please use the repository issue tracker to report bugs, request features, or discuss improvements.