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
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
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
- Ghost.nuspec
- Ghost.psm1
- Private\ConvertTo-GhostLexical.ps1
- Ghost.psd1
- Private\New-QueryString.ps1
- Private\ConvertTo-ApiValue.ps1
- Public\Enable-GhostTheme.ps1
- Private\ConvertTo-GhostErrorRecord.ps1
- Public\Publish-GhostPost.ps1
- Private\Get-MarkdownImage.ps1
- Public\New-GhostTag.ps1
- Private\Get-GhostAPIData.ps1
- Public\Remove-GhostPost.ps1
- Private\New-BodyString.ps1
- Public\Connect-Ghost.ps1
- Private\Test-GhostConnection.ps1
- Public\Get-GhostTag.ps1
- Private\Submit-Request.ps1
- Public\Unpublish-GhostPost.ps1
- Private\Get-GhostHeader.ps1
- Public\New-GhostImage.ps1
- Private\Get-GhostUpdatedAt.ps1
- Public\Disconnect-Ghost.ps1
- Private\Convert-GhostPostImage.ps1
- Public\Sync-GhostPost.ps1
- Private\New-GhostToken.ps1
- Public\Set-GhostTag.ps1
- Private\Read-GhostPostFile.ps1
- Public\New-GhostTheme.ps1
- Private\Get-GhostPostImage.ps1
- Public\Copy-GhostPost.ps1
- Private\ConvertTo-Base64Url.ps1
- Public\New-GhostPost.ps1
- Private\New-URIString.ps1
- Public\Set-GhostPost.ps1
- Private\Test-ReturnFormat.ps1
- Public\Remove-GhostTag.ps1
- ObjectDefinitions\Ghost.PostSync.ps1xml
- Public\Get-GhostPost.ps1
- ObjectDefinitions\Ghost.Image.ps1xml
- Private\ConvertTo-MultipartContent.ps1
- ObjectDefinitions\Ghost.Tag.ps1xml
- Private\Test-GhostPostChange.ps1
- ObjectDefinitions\Ghost.Post.ps1xml
- Private\Set-ObjectTypeName.ps1
- ObjectDefinitions\Ghost.Theme.ps1xml
- Private\ConvertTo-GhostThemeArchive.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.2.0 | 7 | 11/20/2026 |
| 0.1.0 (current version) | 10 | 11/20/2026 |