Ghost CLI
$ ghost Official Med RiskGhost CLI (ghost / ghost-cli) handles installation, upgrades, process management, Nginx/SSL setup, and health diagnostics for self-hosted Ghost sites. Supports --no-prompt, --no-color, --dir, and --verbose for scripted provisioning, though it targets server operations rather than content APIs.
npm install -g ghost-cli ghost manages local OS processes, systemd units, Nginx/SSL config, and Ghost core files on the host machine—tasks outside MCP scope.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --no-prompt, --no-color, and --dir, but emits human-oriented Listr task output with no --json mode.
--no-promptfails cleanly when required install flags are missing- Lacks
--jsonoutput acrossls,doctor, andstatus
ghost ls and ghost doctor are safe diagnostics, while install/setup/uninstall invoke sudo, systemd, and Nginx edits.
ghost doctorchecks system prerequisites before mutating host services
Installed via npm install -g ghost-cli; local dev mode works on macOS/Windows/Linux, while production setups target Ubuntu/Linux systemd.
- Global npm package with local and Linux production modes
Automates Ghost self-hosting lifecycle (install, update, start, doctor), though it does not manage blog posts or members.
- Streamlines server lifecycle and upgrades via
ghost update
Official Ghost Foundation repository (TryGhost/Ghost-CLI) under MIT license.
- Official Ghost Foundation CLI
Documented on ghost.org/docs/ghost-cli/, though many non-interactive flag combinations require checking --help.
- Official Ghost CLI docs and
--helpoutput
Security, Auth & Guardrails
Reads Ghost database and URL settings from config.<env>.json and .ghost-cli in the instance directory; system setup relies on local sudo/systemd privileges.
MIT open-source CLI; self-hosted Ghost is MIT-licensed and free to run on your own infrastructure.
# Ghost CLI (ghost) Agent Rules - Always pass `--no-prompt --no-color` and explicit `--dir <path>` on automation commands. - Run `ghost doctor` before `ghost update` or `ghost restart` to catch permission or Node mismatches. - Never run `ghost uninstall` without explicit human approval and verified database backups.
Agent-Ready Command Recipes
Safe Read-Only Queries
ghost ls --no-color
Lists registered Ghost installations on the host along with their directories, URLs, and process status.
ghost doctor --dir /var/www/ghost --no-color
Checks Node version, file permissions, systemd, and configuration health in the target Ghost directory.
Controlled Writes & Previews
ghost update --dir /var/www/ghost --no-prompt --no-color
Downloads and applies the latest compatible Ghost release without interactive confirmation prompts.
Strengths for Agents
- +
--no-promptand--no-colorenable unattended host provisioning when all flags are supplied. - +
ghost doctorcatches environment, permission, and config problems early.
Caveats & Pitfalls
- ! No
--jsonoutput; status and diagnostics render as terminal tables and spinner logs. - ! Production commands assume Ubuntu/Linux with systemd and
sudoprivileges, and do not manage Ghost content.