Linux command
ghost 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start Ghost in development
ghost start
Start in production
ghost start --production
Stop Ghost
ghost stop
Restart Ghost
ghost restart
Check status
ghost status
Install Ghost
ghost install
Update Ghost
ghost update
说明
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.
参数
- --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.
FAQ
What is the ghost command used for?
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.
How do I run a basic ghost example?
Run `ghost start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --production do in ghost?
Run in production mode.