LinuxCommandLibrary

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, --dir path
Installation directory.

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.

SEE ALSO

node(1), npm(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community