Ghost

0.1.0

Community module for the Ghost Admin API: posts, tags, images, themes and Markdown files.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Ghost -RequiredVersion 0.1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Ghost -Version 0.1.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Gijs Reijn. All rights reserved.

Package Details

Author(s)

  • Gijs Reijn

Tags

Ghost GhostCMS AdminAPI Blog CMS Publishing Markdown REST

Functions

Connect-Ghost Copy-GhostPost Disconnect-Ghost Enable-GhostTheme Get-GhostPost Get-GhostTag New-GhostImage New-GhostPost New-GhostTag New-GhostTheme Publish-GhostPost Remove-GhostPost Remove-GhostTag Set-GhostPost Set-GhostTag Sync-GhostPost Unpublish-GhostPost

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

### Added

- `Connect-Ghost` and `Disconnect-Ghost`: connect to the Admin API of a site with an Admin API key or a staff
 access token, also from the environment variables `GHOST_ADMIN_API_URL` and `GHOST_ADMIN_API_KEY`.
- Posts: `Get-GhostPost`, `New-GhostPost`, `Set-GhostPost`, `Remove-GhostPost`, `Copy-GhostPost`,
 `Publish-GhostPost` and `Unpublish-GhostPost`. Content can be Markdown, HTML or Lexical.
- `Sync-GhostPost`: create and update posts from Markdown files with front matter, and only when a file differs
 from its post. Image files next to a post are uploaded, once.
- `New-GhostImage`: upload an image.
- Tags: `Get-GhostTag`, `New-GhostTag`, `Set-GhostTag` and `Remove-GhostTag`.
- Themes: `New-GhostTheme` uploads a theme from a zip file or from its folder, and `Enable-GhostTheme` activates
 one.
- Windows PowerShell 5.1 and PowerShell 7 are both supported, for a site that runs Ghost 5.0 or later.

FileList

Version History

Version Downloads Last updated
0.2.0 7 11/20/2026
0.1.0 (current version) 10 11/20/2026