Ghost
0.2.0
Community Ghost Admin API module: posts, tags, images, themes, Markdown files, local sites.
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 Export-GhostContent Get-GhostPost Get-GhostTag Import-GhostContent New-GhostImage New-GhostPost New-GhostPostFile New-GhostTag New-GhostTheme Publish-GhostPost Remove-GhostLocalSite Remove-GhostPost Remove-GhostTag Set-GhostPost Set-GhostTag Start-GhostLocalSite Stop-GhostLocalSite Sync-GhostPost Sync-GhostTheme Unpublish-GhostPost
PSEditions
Dependencies
This module has no dependencies.
Release Notes
### Added
- `Sync-GhostPost` reads front matter in YAML as well as JSON: `title: My post`, `tags: [News, Releases]`.
- `Sync-GhostPost -Recurse` also takes the Markdown files in the folders below a folder, for posts that have a
folder of their own: `posts/2026-11-20-my-post/index.md`, with its images next to it. Such a post gets its slug
from the name of its folder.
- `New-GhostPostFile`: start a post as such a folder, with the front matter filled in.
- `Start-GhostLocalSite`, `Stop-GhostLocalSite` and `Remove-GhostLocalSite`: a Ghost site on your own machine or
on a build agent, with an owner, an Admin API key and, when you name one, a theme from a folder or a git
repository and its `routes.yaml`.
- `Export-GhostContent` and `Import-GhostContent`: save the posts, pages, tags and settings of a site to a file,
and add them to or replace those of a site on your own machine. Together they make a local copy of a live site.
- `Sync-GhostTheme`: upload and activate a theme only when the site does not show it yet, so that it can run on
every push.
### Changed
- A date at the start of the name of a post file or folder, as in `2026-11-20-my-post`, is no longer part of the
slug. It is the publication date of the post, unless the front matter has a `published_at`.
- A date in the front matter without a time zone is read as UTC, on every machine.
FileList
- Ghost.nuspec
- Ghost.psm1
- Private\ConvertTo-GhostThemeArchive.ps1
- Ghost.psd1
- Private\ConvertTo-GhostLexical.ps1
- Private\New-QueryString.ps1
- Public\Enable-GhostTheme.ps1
- Private\Invoke-GhostGit.ps1
- Public\Publish-GhostPost.ps1
- Private\ConvertTo-ApiValue.ps1
- Public\New-GhostTag.ps1
- Private\ConvertTo-GhostErrorRecord.ps1
- Public\Remove-GhostPost.ps1
- Private\Get-MarkdownImage.ps1
- Public\Connect-Ghost.ps1
- Private\Get-GhostAPIData.ps1
- Public\Get-GhostTag.ps1
- Private\Resolve-GhostLocalSitePath.ps1
- Public\Unpublish-GhostPost.ps1
- Private\New-BodyString.ps1
- Public\New-GhostImage.ps1
- Private\Invoke-GhostOwnerRequest.ps1
- Public\New-GhostPostFile.ps1
- Private\Get-GhostContentCount.ps1
- Public\Disconnect-Ghost.ps1
- Private\Test-GhostConnection.ps1
- Public\Sync-GhostTheme.ps1
- Private\Submit-Request.ps1
- Public\Sync-GhostPost.ps1
- Private\Get-GhostHeader.ps1
- Public\Set-GhostTag.ps1
- Private\Get-GhostUpdatedAt.ps1
- Public\New-GhostTheme.ps1
- Private\ConvertFrom-FrontMatterYaml.ps1
- Public\Export-GhostContent.ps1
- Private\Wait-GhostSite.ps1
- Public\Import-GhostContent.ps1
- Private\Convert-GhostPostImage.ps1
- Public\Copy-GhostPost.ps1
- Private\New-GhostToken.ps1
- Public\Remove-GhostLocalSite.ps1
- Private\Read-GhostPostFile.ps1
- Public\Start-GhostLocalSite.ps1
- Private\Get-GhostPostImage.ps1
- Public\New-GhostPost.ps1
- Private\ConvertTo-Base64Url.ps1
- Public\Set-GhostPost.ps1
- Private\New-URIString.ps1
- Public\Remove-GhostTag.ps1
- Private\Test-ReturnFormat.ps1
- Public\Stop-GhostLocalSite.ps1
- ObjectDefinitions\Ghost.PostSync.ps1xml
- Public\Get-GhostPost.ps1
- ObjectDefinitions\Ghost.ThemeSync.ps1xml
- Private\ConvertTo-MultipartContent.ps1
- ObjectDefinitions\Ghost.Image.ps1xml
- Private\Get-GhostVersionForNode.ps1
- ObjectDefinitions\Ghost.Tag.ps1xml
- Private\Test-GhostPostChange.ps1
- ObjectDefinitions\Ghost.Post.ps1xml
- Private\Set-ObjectTypeName.ps1
- ObjectDefinitions\Ghost.LocalSite.ps1xml
- Private\Invoke-GhostCli.ps1
- ObjectDefinitions\Ghost.Theme.ps1xml
- Private\Get-GhostThemeFingerprint.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.2.0 (current version) | 7 | 11/20/2026 |
| 0.1.0 | 10 | 11/20/2026 |