Skip to content
A PowerShell module to interact with the blogging platform, Ghost's API.
Branch: master
Clone or download
Latest commit 8cab568 Jul 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Private new-ghostpost fixes Jul 20, 2019
Public new-ghostpost fixes Jul 20, 2019
buildscripts build tweak Jul 6, 2019
.gitattributes Initial commit Jul 4, 2019
.gitignore Get-GhostPost Jul 6, 2019
PSGhost.psd1 Initial commit Jul 4, 2019
PSGhost.psm1 Prevented TLS versioning error Jul 17, 2019
README.md Update README.md Jul 6, 2019
appveyor.yml Added appveyor bits Jul 6, 2019
configuration_template.json moved to admin API Jul 6, 2019

README.md

PSGhost - Manage your Ghost Blog with PowerShell

Setup Instructions

  1. Download PSGhost from the PowerShell Gallery (Install-Module PSGhost)
  2. Create a custom integration for Ghost. https://ghost.org/integrations/custom-integrations/#add-a-new-custom-integration
  3. Find your API keys in the Ghost console from your custom integration at https://%account-name%.ghost.io/ghost/#/settings/integrations.
  4. Save all API keys and the API URL to your local configuration. This command saves your API keys encrypted to %LOCALAPPDATA%\PSGhost\configuration.json
Save-GhostConfigurationItem -Label ContentApiKey -Value 'XXXXXXXXX'
Save-GhostConfigurationItem -Label AdminApiKey -Value 'XXXXXXXX'
Save-GhostConfigurationItem -Label ApiUrl -Value 'https://<account-name>.ghost.io'
Save-GhostConfigurationItem -Label UserName -Value 'XXXXXX'
Save-GhostConfigurationItem -Label UserPassword -Value 'XXXXXXXX'
  1. Run Get-GhostConfiguration to ensure all API keys are returned decrypted.
  2. Run a command to ensure no errors are returned: Get-GhostSettings.

FYI: Only tested on Ghost(Pro)

You can’t perform that action at this time.