(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72869],{701887:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/release-notes/5.22.0/upgrade-guide",function(){return n(18312)}])},18312:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var o=n(999534);n(667294);var r,a=n(603905),i=n(741664),l=n.n(i),p=n(605679),s=n(915761),u=n(501075),d=n(319689),c=u.A,m=function(e){return console.warn("Component Editor was not imported, exported, or provided by MDXProvider as global scope"),(0,a.kt)("div",Object.assign({},e))},y={Layout:c,pageData:{title:"Upgrade from 5.21.0 to 5.22.0",description:"Learn how to upgrade Webiny from 5.21.0 to 5.22.0.",type:"release-notes",showPageHeader:!0,fullWidth:!1},docsearch:{type:"release-notes",weight:50},navigation:d,tableOfContents:[{title:"2. Run the Upgrade Command",slug:"2-run-the-upgrade-command",children:[]},{title:"3. Deploy Your Project",slug:"3-deploy-your-project",children:[]}]};function h(e){var t=e.components,n=(0,o.Z)(e,["components"]);return(0,a.kt)("wrapper",Object.assign({},y,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)(s.b,{type:"success",title:"What you’ll learn",mdxType:"Alert"},(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"how to upgrade Webiny from 5.21.0 to 5.22.0"))),(0,a.kt)(s.b,{type:"danger",mdxType:"Alert"},(0,a.kt)("p",null,"Before continuing, make sure to take the necessary precautions, listed in the ",(0,a.kt)(l(),{href:"/docs/release-notes/upgrade-webiny#-precaution-measures",passHref:!0,legacyBehavior:!0},(0,a.kt)("a",null,"Overview"))," section.")),(0,a.kt)(s.b,{type:"info",mdxType:"Alert"},(0,a.kt)("p",null,"Make sure to check out the ",(0,a.kt)(l(),{href:"/docs/release-notes/5.22.0/changelog",passHref:!0,legacyBehavior:!0},(0,a.kt)("a",null,"5.22.0 changelog"))," to get familiar with all the changes introduced in this release.")),"## 1. Upgrade Webiny Packages",(0,a.kt)("p",null,"Upgrade all ",(0,a.kt)("inlineCode",{parentName:"p"},"@webiny/*")," packages by running the following command:"),(0,a.kt)(m,{title:"",lang:"bash",mdxType:"Editor"},'yarn up "@webiny/*@5.22.0"'),(0,a.kt)("p",null,"Once the upgrade has finished, running the ",(0,a.kt)("inlineCode",{parentName:"p"},"yarn webiny --version")," command in your terminal should return ",(0,a.kt)("inlineCode",{parentName:"p"},"5.22.0"),"."),(0,a.kt)(s.b,{type:"info",mdxType:"Alert"},(0,a.kt)("p",null,"Before moving on, make sure you commit all your changes.")),(0,a.kt)(p.X,{level:2,id:"2-run-the-upgrade-command",nextElement:{type:"paragraph"}},"2. Run the Upgrade Command"),(0,a.kt)("p",null,"The next step is to run the project upgrade:"),(0,a.kt)(m,{title:"",lang:"bash",mdxType:"Editor"},"yarn webiny upgrade"),(0,a.kt)("p",null,"Once the upgrade command has finished, you can run the ",(0,a.kt)("a",Object.assign({parentName:"p"},{href:"https://git-scm.com/docs/git-status"}),(0,a.kt)("inlineCode",{parentName:"a"},"git status"))," command to see all changes that the command performed."),(0,a.kt)(p.X,{level:2,id:"3-deploy-your-project",nextElement:{type:"paragraph"}},"3. Deploy Your Project"),(0,a.kt)("p",null,"Finally, proceed by redeploying your Webiny project:"),(0,a.kt)(m,{title:"",lang:"bash",mdxType:"Editor"},"# Execute in your project root.\nyarn webiny deploy --env {environment}"),(0,a.kt)(s.b,{type:"warning",mdxType:"Alert"},(0,a.kt)("p",null,"As stated in the ",(0,a.kt)(l(),{href:"/docs/release-notes/upgrade-webiny#pre-production-environments-first",passHref:!0,legacyBehavior:!0},(0,a.kt)("a",null,"Upgrade Webiny"))," section, we recommend that you first deploy your changes into one of your pre-production environments, like ",(0,a.kt)("inlineCode",{parentName:"p"},"dev")," or ",(0,a.kt)("inlineCode",{parentName:"p"},"staging"),".")),(0,a.kt)(s.b,{type:"success",mdxType:"Alert"},(0,a.kt)("p",null,"Learn more about different deployment environments in the ",(0,a.kt)(l(),{href:"/docs/core-development-concepts/ci-cd/environments",passHref:!0,legacyBehavior:!0},(0,a.kt)("a",null,"CI/CD / Environments"))," key topic.")))}h.isMDXComponent=!0,h.layoutProps=y}},function(e){e.O(0,[35711,7326,32384,49774,92888,40179],function(){return e(e.s=701887)}),_N_E=e.O()}]);