LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ghost

Command-line interface for the Ghost publishing platform

TLDR

Start Ghost in development
$ ghost start
copy
Start in production
$ ghost start --production
copy
Stop Ghost
$ ghost stop
copy
Restart Ghost
$ ghost restart
copy
Check status
$ ghost status
copy
Install Ghost
$ ghost install
copy
Update Ghost
$ ghost update
copy

SYNOPSIS

ghost command [options]

DESCRIPTION

ghost is the command-line interface for Ghost, a modern open-source publishing platform built on Node.js. It provides complete lifecycle management for Ghost installations, including initial setup, updates, configuration, and process management.The CLI automates database setup, SSL certificate installation, systemd service configuration, and nginx proxy setup. It handles migrations during updates and provides diagnostic tools through the doctor command.

PARAMETERS

--production

Run in production mode.
-D, --development
Run in development mode.
-d, --dir path
Installation directory.
--enable
Restart Ghost automatically on server reboot.
--no-prompt
Skip confirmation prompts.

CONFIGURATION

config.production.json

Production environment configuration for database, URL, mail, and server settings.
config.development.json
Development environment configuration.

SUBCOMMANDS

install

Install Ghost.
start
Start Ghost.
stop
Stop Ghost.
restart
Restart Ghost.
status
Show status.
update
Update Ghost.
setup
Configure Ghost.
config
View/set configuration.
log
View logs.
doctor
Check installation.
run
Start Ghost without process manager (for debugging).
backup
Create a zip backup of site data.
uninstall
Remove Ghost installation and data.

SEE ALSO

node(1), npm(1), nginx(1), systemctl(1)

Copied to clipboard
Kai