https://github.com/adbertram/psghost
A PowerShell module to interact with the blogging platform, Ghost's API.
https://github.com/adbertram/psghost
Last synced: about 1 year ago
JSON representation
A PowerShell module to interact with the blogging platform, Ghost's API.
- Host: GitHub
- URL: https://github.com/adbertram/psghost
- Owner: adbertram
- Created: 2019-07-04T14:25:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-04T18:23:54.000Z (almost 5 years ago)
- Last Synced: 2025-05-03T14:55:56.633Z (about 1 year ago)
- Language: PowerShell
- Size: 61.5 KB
- Stars: 7
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PSGhost - Manage your Ghost Blog with PowerShell
## Setup Instructions
1. Download PSGhost from the PowerShell Gallery (`Install-Module PSGhost`)
1. Create a custom integration for Ghost. https://ghost.org/integrations/custom-integrations/#add-a-new-custom-integration
2. Find your API keys in the Ghost console from your custom integration at https://%account-name%.ghost.io/ghost/#/settings/integrations.
3. Save all API keys and the API URL to your local configuration. This command saves your API keys encrypted to _\configuration.json_
```PowerShell
Save-GhostConfigurationItem -Label ContentApiKey -Value 'XXXXXXXXX'
Save-GhostConfigurationItem -Label AdminApiKey -Value 'XXXXXXXX'
Save-GhostConfigurationItem -Label ApiUrl -Value 'https://.ghost.io'
Save-GhostConfigurationItem -Label UserName -Value 'XXXXXX'
Save-GhostConfigurationItem -Label UserPassword -Value 'XXXXXXXX'
```
4. Run `Get-GhostConfiguration` to ensure all API keys are returned decrypted.
5. Run a command to ensure no errors are returned: `Get-GhostSettings`.