Published on

Update your Ghost Blog with the Ghost-CLI

Authors

If you installed your Ghost Blog with the Ghost-CLI, you can easily upgrade your Ghost version using the CLI.

Backups

Backup your blog by exporting the json via the Ghost Admin Interface, and also update your content directory:

$ sudo su - ghost
$ cd /var/www/ghost
$ tar -zcf /home/ghost/backups/ghost-content-$(date +%F).tar.gz content

Check the Current Version:

$ ghost status

Version:
1.17.0

Update Ghost:

$ npm i -g ghost-cli
$ ghost update

Verify Version:

$ ghost status

Version:
1.17.0

No need to restart Ghost as the update function restarted the process already.

Resources:

Thank You

Thanks for reading, feel free to check out my website, feel free to subscribe to my newsletter or follow me at @ruanbekker on Twitter.