Updating

Updates are handled by Composer, PHP's dependency manager. We recommend running all updates locally (not on production) via the command line.

Best Practice

We recommend running all updates locally to eliminate downtime and any possibility of an unexpected change or timeout affecting your site.

Composer

If you installed with Composer, you can update your installation with the following command:

composer update statamic/cms --with-dependencies

Note: You may prefer to run composer update to update all of your dependencies.

Statamic CLI

If you installed with Statamic CLI, you can update your installation with the following command:

statamic update

Control Panel

You can also run updates in the control panel in the Tools → Updates area.

When using the control panel updater, your statamic/cms Composer version dependency will be fixed to whichever explicit version you choose. To go back to a constraint-style version, you'll need to update your composer.json file.

For example, if you update to v3.2.30 in the control panel, this will be your Composer constraint.

{
"require": {
"statamic/cms": "3.2.30",
}
}

To go back to a more traditional version range constraint, you may want to replace it with this:

{
"require": {
"statamic/cms": "^3.2",
}
}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →
Hello there! Are you looking for the Statamic v2 documentation?