How to Upgrade Your Ghost Blog via Command Line
Step 1: Navigate to Your Ghost Blog Directory
First, change the directory to the path where your Ghost blog is installed. For example, in my case, it's located at:
Step 2: Download the Latest Version with wget
Use wget
to download the latest version of Ghost:
Note: You can find the current version on the official website: https://ghost.org/download/
Step 3: Remove the Old Core Code
Delete the old core directory:
Step 4: Unzip the Downloaded File
Unzip the file you downloaded into the ghost
directory:
Step 5: Change Ownership and Permissions
Update the ownership and permissions for the Ghost files:
Step 6: Install New Dependencies
Navigate back to your Ghost directory and install new dependencies:
Step 7: Restart Ghost
Finally, restart your Ghost blog:
Note: If you're not using pm2, you can use the following command instead:
Your Ghost blog should now be successfully upgraded!