Skip to content

A PowerShell module to interact with the blogging platform, Ghost's API.

Notifications You must be signed in to change notification settings

adbertram/PSGhost

Repository files navigation

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 \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.

About

A PowerShell module to interact with the blogging platform, Ghost's API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published