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.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

Upgrading Silverstripe with composer


Reply

2 Posts   388 Views

Avatar
neilberry

3 June 2014 at 3:01am Community Member, 6 Posts

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

9 June 2014 at 5:20pm (Last edited: 9 June 2014 5:20pm), Forum Moderator, 149 Posts

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).