Update Bolt to A Newer Version

Bolt releases are available in the pega/bolt-release composer package. Each composer package version corresponds to a bolt release version. As with any other composer package, there are a couple version management methods.

The first method is the reccomended method.

Latest Stable Release

This is the simplest method for installing and updating bolt, and requires minimal input from the developer. This is also the standard way that most composer packages would be installed.

The downside is that the developer has minimal control over the exact version used.

First Install

You can do a first time install by requiring either the latest major version using the standard composer require command:

composer require pega/bolt-release

or the latest stable version of a given major bolt version:

composer require pega/bolt-release ^<major>.0.0

Update

Updates follow the same structure as most other composer installations.

composer update pega/bolt-release

An Exact Bolt Version

If you want fine-grained control over the version of Bolt being used you can always tell composer to install an exact version of bolt:

First Install or Update

Both updates and first time installs follow the same structure here.

composer require pega/bolt-release 2.3.1

After Updating Bolt

  1. Recompile your theme as described in the workflows section.
  2. Cache clear in Drupal