How to upgrade Bolt via SSH

Updated on Dec 10, 2015

Upgrading Bolt is quite easy as the files that are used for configuration are not included in the distribution files. In practice this means that the upgrade process is similar to the installation process, where you just have to install a new copy of the distribution files.

Create a Backup

It is recommended to create Bolt backup, before making major changes on your website. This will allow you to restore it to a fully operational state if something goes wrong.

If you wish to upgrade Bolt via SSH, you need to:


Prepare the Bolt Installation for Upgrade

The first thing you need to do is to access your Bolt installation over SSH.

SSH Connection

If you do not know how to access your account over SSH, you can review our tutorial that will describe the entire process.

Once you access your account on the server via SSH, you need to access the public_html/ directory. It is the directory, accessible directly via the primary domain on your account. For that purpose, you need to execute the following command.

cd public_html

Once you navigate to the Bolt Installation, you can safely proceed with the preparation for the upgrade. You will have to clear up the cache of your Bolt website and it is easy to do so via SSH. The command is:

php app/nut cache:clear

after that you will be informed that the cache has been cleared. A sample output message is:

Deleted 247 files from cache. Cache cleared!


Initiate the Bolt Upgrade

You are now ready to proceed with the actual upgrade. For that purpose, you need to download the latest Bolt release. Execute the following command:

curl -O

Once downloaded, you need to extract the files of the Bolt archive. Execute this command in your shell.

tar -xzf bolt-latest.tar.gz --strip-components=1

The next step is to set the permissions for the newly added distribution files and directories. This will ensure that the upgrade is performed smoothly. Execute the following command:

chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/

All done, your Bolt installation is now successfully upgraded to the latest stable release. Enjoy!

On this page...

    Bolt Hosting

    • Free Bolt Installation
    • 24/7 Bolt Support
    • Free Domain Transfer
    • Hack-free Protection
    • Fast SSD Storage
    • Free Bolt Optimization
    • Free Bolt Transfer
    • Free Cloudflare CDN
    View More