Ghost-CLI is the official command-line tool for installing, updating, and managing Ghost (content management system) on production and local environments. Current stable version is 1.29.2, with regular patch releases (approximately monthly). It manages the entire lifecycle: setup, configuration, backups, SSL via Let's Encrypt, Nginx, and Systemd on Ubuntu. Key differentiators: single-command install/update, recommended stack enforcement (Ubuntu, Nginx, MySQL, Node.js), and minimal configuration options to reduce maintenance complexity. Supports both production and local installs.
npm install ghost-cliNo compatibility data collected yet for this library.
Shows global install, production vs local setup, and basic commands for Ghost management.
Update Node.js to a supported version (20.11.1+, 22.11.0+ or 24.0.0+).
Use Ghost-CLI only with Ghost 1.0.0 and above. For older versions, use legacy tooling.
Use the recommended stack for production, or use 'ghost install local' for development.
Update Ghost-CLI to >=1.28.0 to manage Ghost 5.x.
Ensure the database config (docker-compose or direct) is properly set and accessible.
Set environment variables (e.g., GHOST_URL, MAILGUN_SMTP_USERNAME) or use a config.local.json.
If port usage issues occur, specify port via --port or adjust firewall rules.
Run 'npm install -g ghost-cli@latest' and ensure npm global bin directory is in PATH.
Update Node.js to 20.11.1, 22.11.0, or 24.0.0 using nvm or installer.
Run 'ghost install' with sudo or install locally with 'ghost install local'.
Start MySQL service: 'sudo systemctl start mysql' or 'sudo service mysql start'.
Check internet connection and DNS settings. If behind proxy, set HTTP_PROXY/HTTPS_PROXY.