Ghost

0.2.0

Community Ghost Admin API module: posts, tags, images, themes, Markdown files, local sites.

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

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

Install-PSResource -Name Ghost

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

Desktop Core

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

Version History

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