Best way to update PayloadCMS?

default discord avatar
Eustachiolast year
7

Is it just a matter of changing the version of payload in the package.json file and run npm install?

  • default discord avatar
    Marťafiixeklast year

    Yes, I would just run

    npm update

    or

    yarn upgrade

    without changing version if you have specified version range inside

    package.json


    If you did not specify range such as

    ^3.2.2

    (notice the caret) then yes, you have to change the version on your own inside

    package.json
  • default discord avatar
    Eustachiolast year

    Okay! Thank you very much

  • default discord avatar
    Marťafiixeklast year

    And there's no need to do anything else

  • discord user avatar
    jacobsfletch
    last year

    👍 You can also run

    yarn add payload@latest

    or

    npm install payload@latest

    to have your package.json auto-update to the latest stable release

  • default discord avatar
    Eustachiolast year

    Amazing! Thank you!

  • discord user avatar
    denolfe
    last year

    @Eustachio I'd also recommend looking through the Release notes to look for anything of note between your current version and latest

    https://github.com/payloadcms/payload/releases
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.