Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Upgrading Silverstripe with composer


Go to End


2 Posts   1624 Views

Avatar
neilberry

Community Member, 6 Posts

3 June 2014 at 3:01am

Hi all,

Whats the best way to upgrade to the latest version of SS with Composer? There is some documentation but nothing that simple for a newbie like me ;)

I'm using 3.1.3 atm, but want to update to 3.1.5...

Thanks

Avatar
camfindlay

Forum Moderator, 267 Posts

9 June 2014 at 5:20pm

Edited: 09/06/2014 5:20pm

Edit your composer.json file (not the .lock file) - switch the numbers for the framework and cms dependancies to "3.1.5" or if you want to keep doing updates without editing this file later you can use wildcards for example "3.1.*@stable" will allow you to keep upgrading with each stable release of the 3.1 release.

After that in your command line you just need to run "composer update" and of course you'll want to test your work, though the patch version releases are usually non-breaking (so should be pretty safe).