Best way to update PayloadCMS?

default discord avatar
Eustachio
last month
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ťafiixek
    last month

    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
    Eustachio
    last month

    Okay! Thank you very much

  • default discord avatar
    Marťafiixek
    last month

    And there's no need to do anything else

  • discord user avatar
    jacobsfletch
    Payload Team
    last month

    👍 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
    Eustachio
    last month

    Amazing! Thank you!

  • discord user avatar
    denolfe
    Payload Team
    last month

    @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
Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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