Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Best way to update PayloadCMS?

default discord avatar
Eustachio2 years ago
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ťafiixek2 years ago

    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
    Eustachio2 years ago

    Okay! Thank you very much

  • default discord avatar
    Marťafiixek2 years ago

    And there's no need to do anything else

  • discord user avatar
    jacobsfletch
    2 years ago

    👍 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
    Eustachio2 years ago

    Amazing! Thank you!

  • discord user avatar
    denolfe
    2 years ago

    @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 dedicated engineering support directly from the Payload team.