Skip to content

Confluence REST API (including Cloud) via PowerShell

License

Notifications You must be signed in to change notification settings

vzabawski/ConfluencePS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

ConfluencePS

A PowerShell module that interacts with Atlassian's Confluence wiki product.

ConfluencePS communicates with Atlassian's actively supported REST API via basic authentication. This is the only way to interact with their cloud-hosted instances via API, and will eventually be the only way to interact with an on-premises installation.

Instructions

  • "Download ZIP" near the top-right of this page
  • If necessary, unblock the zip
  • Extract the ConfluencePS folder to a module path
    • For example, $env:USERPROFILE\Documents\WindowsPowerShell\Modules\

NOTE: The top-level ConfluencePS folder (that contains readme.md) is just for GitHub presentation. You'll want to keep the ConfluencePS child folder, discarding the top level.

# Import the module
    Import-Module ConfluencePS
	# Alternatively,
    Import-Module C:\ConfluencePS
	# or
    Import-Module \\server\share\ConfluencePS

# Get commands in the module
    Get-Command -Module ConfluencePS

# Get help
    Get-Help about_ConfluencePS
	
# Set your instance's info, so PowerShell knows where to send requests
# Local installs may be 'http://wiki.mydomain.com', for example, but Atlassian cloud installs need the /wiki subdirectory
	Set-WikiInfo -BaseURI 'https://brianbunke.atlassian.net/wiki'
# You will then be prompted for your Confluence credentials

Examples

Not yet included here while the module is still in constant development. In the interim, you can always:

Get-Help New-WikiLabel -Examples

Acknowledgments

Many thanks to thomykay for his PoshConfluence SOAP API module, which gave me enough of a starting point to feel comfortable undertaking this project.

I stole repurposed much of RamblingCookieMonster's example module, PSStackExchange, which was a huge help in standing up everything correctly.

juneb has a wealth of information on the right way to supply module help. Check this out for starters.

About

Confluence REST API (including Cloud) via PowerShell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%