Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Upgrading Silverstripe with composer

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 325 Views
  • neilberry
    Community Member
    6 Posts

    Upgrading Silverstripe with composer Link to this post

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


  • camfindlay
    Forum Moderator
    148 Posts

    Re: Upgrading Silverstripe with composer Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.