[{"data":1,"prerenderedAt":600},["ShallowReactive",2],{"navigation":3,"/docs/command-reference/maintain":285,"/docs/command-reference/maintain-surround":595},[4],{"title":5,"path":6,"stem":7,"children":8},"Introduction","/docs","docs/1.index",[9,10,36,53,70,83,100,121,138,155,176],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13,"children":14,"page":35},"Installation","/docs/installation","docs/1.installation",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Install to macOS","/docs/installation/install-macos","docs/1.installation/1.install-macos",{"title":20,"path":21,"stem":22},"Install to Windows","/docs/installation/install-windows","docs/1.installation/2.install-windows",{"title":24,"path":25,"stem":26},"Install to Linux","/docs/installation/install-linux","docs/1.installation/3.install-linux",{"title":28,"path":29,"stem":30},"Install via Composer","/docs/installation/install-composer","docs/1.installation/4.install-composer",{"title":32,"path":33,"stem":34},"Install via NPM/Yarn","/docs/installation/install-npm-yarn","docs/1.installation/5.install-npm-yarn",false,{"title":37,"path":38,"stem":39,"children":40,"page":35},"Community","/docs/community","docs/11.community",[41,45,49],{"title":42,"path":43,"stem":44},"Get Help","/docs/community/get-help","docs/11.community/1.get-help",{"title":46,"path":47,"stem":48},"Testing New Releases","/docs/community/testing","docs/11.community/2.testing",{"title":50,"path":51,"stem":52},"Contributing","/docs/community/contributing","docs/11.community/3.contributing",{"title":54,"path":55,"stem":56,"children":57,"page":35},"Getting Started","/docs/getting-started","docs/2.getting-started",[58,62,66],{"title":59,"path":60,"stem":61},"How Spin Works","/docs/getting-started/how-spin-works","docs/2.getting-started/1.how-spin-works",{"title":63,"path":64,"stem":65},"Create a New Project with Spin","/docs/getting-started/create-a-new-project-with-spin","docs/2.getting-started/2.create-a-new-project-with-spin",{"title":67,"path":68,"stem":69},"Add Spin to an Existing Project","/docs/getting-started/add-spin-to-an-existing-project","docs/2.getting-started/3.add-spin-to-an-existing-project",{"title":71,"path":72,"stem":73,"children":74,"page":35},"Development Environment","/docs/development-environment","docs/3.development-environment",[75,79],{"title":76,"path":77,"stem":78},"Starting Up Your Development Environment","/docs/development-environment/starting-up-your-development-environment","docs/3.development-environment/1.starting-up-your-development-environment",{"title":80,"path":81,"stem":82},"Running Commands in Development","/docs/development-environment/running-commands-in-development","docs/3.development-environment/2.running-commands-in-development",{"title":84,"path":85,"stem":86,"children":87,"page":35},"Server Configuration","/docs/server-configuration","docs/4.server-configuration",[88,92,96],{"title":89,"path":90,"stem":91},"Server Requirements","/docs/server-configuration/server-requirements","docs/4.server-configuration/1.server-requirements",{"title":93,"path":94,"stem":95},"Server Configuration Basics","/docs/server-configuration/server-configuration-basics","docs/4.server-configuration/2.server-configuration-basics",{"title":97,"path":98,"stem":99},".spin.yml Usage","/docs/server-configuration/spin-yml-usage","docs/4.server-configuration/3.spin-yml-usage",{"title":101,"path":102,"stem":103,"children":104,"page":35},"Providers","/docs/providers","docs/5.providers",[105,109,113,117],{"title":106,"path":107,"stem":108},"DigitalOcean","/docs/providers/digitalocean","docs/5.providers/0.digitalocean",{"title":110,"path":111,"stem":112},"Hetzner","/docs/providers/hetzner","docs/5.providers/0.hetzner",{"title":114,"path":115,"stem":116},"Vultr","/docs/providers/vultr","docs/5.providers/0.vultr",{"title":118,"path":119,"stem":120},"Use Any Host","/docs/providers/use-any-host","docs/5.providers/99.use-any-host",{"title":122,"path":123,"stem":124,"children":125,"page":35},"Deployment","/docs/deployment","docs/6.deployment",[126,130,134],{"title":127,"path":128,"stem":129},"Choosing a Deployment Strategy","/docs/deployment/choosing-a-deployment-strategy","docs/6.deployment/1.choosing-a-deployment-strategy",{"title":131,"path":132,"stem":133},"Automated Deployments with GitHub Actions","/docs/deployment/automated-deployments-with-github-actions","docs/6.deployment/2.automated-deployments-with-github-actions",{"title":135,"path":136,"stem":137},"Using \"spin deploy\"","/docs/deployment/using-spin-deploy","docs/6.deployment/3.using-spin-deploy",{"title":139,"path":140,"stem":141,"children":142,"page":35},"Server Access","/docs/server-access","docs/7.server-access",[143,147,151],{"title":144,"path":145,"stem":146},"Connecting to Your Server","/docs/server-access/connecting-to-your-server","docs/7.server-access/1.connecting-to-your-server",{"title":148,"path":149,"stem":150},"Troubleshooting Your Application","/docs/server-access/troubleshooting-your-application","docs/7.server-access/2.troubleshooting-your-application",{"title":152,"path":153,"stem":154},"Updating Your Server","/docs/server-access/updating-your-server","docs/7.server-access/3.updating-your-server",{"title":156,"path":157,"stem":158,"children":159,"page":35},"Advanced","/docs/advanced","docs/8.advanced",[160,164,168,172],{"title":161,"path":162,"stem":163},"Generating a Secure SSH Key","/docs/advanced/generating-a-secure-ssh-key","docs/8.advanced/2.generating-a-secure-ssh-key",{"title":165,"path":166,"stem":167},"Adding Other Services","/docs/advanced/adding-other-services","docs/8.advanced/3.adding-other-services",{"title":169,"path":170,"stem":171},"Create your own Spin Template","/docs/advanced/create-your-own-template","docs/8.advanced/99.create-your-own-template",{"title":173,"path":174,"stem":175},"Migrating from Spin v2 to v3","/docs/advanced/migrating-from-spin-v2-to-v3","docs/8.advanced/migrating-from-spin-v2-to-v3",{"title":177,"path":178,"stem":179,"children":180,"page":35},"Command Reference","/docs/command-reference","docs/9.command-reference",[181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245,249,253,257,261,265,269,273,277,281],{"title":182,"path":183,"stem":184},"base64","/docs/command-reference/base64","docs/9.command-reference/base64",{"title":186,"path":187,"stem":188},"build","/docs/command-reference/build","docs/9.command-reference/build",{"title":190,"path":191,"stem":192},"configure","/docs/command-reference/configure","docs/9.command-reference/configure",{"title":194,"path":195,"stem":196},"debug","/docs/command-reference/debug","docs/9.command-reference/debug",{"title":198,"path":199,"stem":200},"deploy","/docs/command-reference/deploy","docs/9.command-reference/deploy",{"title":202,"path":203,"stem":204},"down","/docs/command-reference/down","docs/9.command-reference/down",{"title":206,"path":207,"stem":208},"exec","/docs/command-reference/exec","docs/9.command-reference/exec",{"title":210,"path":211,"stem":212},"gh","/docs/command-reference/gh","docs/9.command-reference/gh",{"title":214,"path":215,"stem":216},"help","/docs/command-reference/help","docs/9.command-reference/help",{"title":218,"path":219,"stem":220},"init","/docs/command-reference/init","docs/9.command-reference/init",{"title":222,"path":223,"stem":224},"kill","/docs/command-reference/kill","docs/9.command-reference/kill",{"title":226,"path":227,"stem":228},"latest","/docs/command-reference/latest","docs/9.command-reference/latest",{"title":230,"path":231,"stem":232},"logs","/docs/command-reference/logs","docs/9.command-reference/logs",{"title":234,"path":235,"stem":236},"maintain","/docs/command-reference/maintain","docs/9.command-reference/maintain",{"title":238,"path":239,"stem":240},"mkpasswd","/docs/command-reference/mkpasswd","docs/9.command-reference/mkpasswd",{"title":242,"path":243,"stem":244},"new","/docs/command-reference/new","docs/9.command-reference/new",{"title":246,"path":247,"stem":248},"provision","/docs/command-reference/provision","docs/9.command-reference/provision",{"title":250,"path":251,"stem":252},"prune","/docs/command-reference/prune","docs/9.command-reference/prune",{"title":254,"path":255,"stem":256},"ps","/docs/command-reference/ps","docs/9.command-reference/ps",{"title":258,"path":259,"stem":260},"pull","/docs/command-reference/pull","docs/9.command-reference/pull",{"title":262,"path":263,"stem":264},"run","/docs/command-reference/run","docs/9.command-reference/run",{"title":266,"path":267,"stem":268},"stop","/docs/command-reference/stop","docs/9.command-reference/stop",{"title":270,"path":271,"stem":272},"up","/docs/command-reference/up","docs/9.command-reference/up",{"title":274,"path":275,"stem":276},"update","/docs/command-reference/update","docs/9.command-reference/update",{"title":278,"path":279,"stem":280},"vault","/docs/command-reference/vault","docs/9.command-reference/vault",{"title":282,"path":283,"stem":284},"version","/docs/command-reference/version","docs/9.command-reference/version",{"id":286,"title":234,"body":287,"canonical":585,"description":586,"extension":587,"layout":588,"meta":589,"navigation":592,"path":235,"seo":593,"stem":236,"__hash__":594},"docs/docs/9.command-reference/maintain.md",{"type":288,"value":289,"toc":578},"minimark",[290,297,302,308,381,388,392,395,414,418,421,435,439,442,574],[291,292,293],"lead-p",{},[294,295,296],"p",{},"Apply updates to your inventory of servers.",[298,299,301],"h2",{"id":300},"usage","Usage",[303,304,305],"note",{},[294,306,307],{},"When you perform maintenance on your server, your server may experience brief downtime if it the updates require a reboot. Be sure to run this command during a communicated maintenance window.",[309,310,316],"pre",{"className":311,"code":312,"filename":313,"language":314,"meta":315,"style":315},"language-bash shiki shiki-themes material-theme-lighter github-dark github-dark","spin maintain [environment] [ -p|--port \u003Cport> -u|--user \u003Cuser> -U|--upgrade ]\n","Usage for \"spin maintain\"","bash","",[317,318,319],"code",{"__ignoreMap":315},[320,321,324,328,332,336,340,344,347,350,353,356,359,362,364,367,369,372,375,378],"span",{"class":322,"line":323},"line",1,[320,325,327],{"class":326},"soiBB","spin",[320,329,331],{"class":330},"s0vBq"," maintain",[320,333,335],{"class":334},"sMo7A"," [environment] ",[320,337,339],{"class":338},"sG-J9","[",[320,341,343],{"class":342},"sFfmW"," -p|",[320,345,346],{"class":334},"--port ",[320,348,349],{"class":342},"\u003C",[320,351,352],{"class":334},"port",[320,354,355],{"class":342},">",[320,357,358],{"class":342}," -u|",[320,360,361],{"class":334},"--user ",[320,363,349],{"class":342},[320,365,366],{"class":334},"user",[320,368,355],{"class":342},[320,370,371],{"class":334}," -U",[320,373,374],{"class":342},"|",[320,376,377],{"class":334},"--upgrade ",[320,379,380],{"class":338},"]\n",[294,382,383],{},[384,385],"img",{"alt":386,"src":387},"Spin Maintain Command","/images/docs/whats-spin/spin-maintain.png",[298,389,391],{"id":390},"checklist-before-executing-this-command","Checklist before executing this command",[294,393,394],{},"Before you execute this command, you should have the following completed:",[396,397,398,407],"ul",{},[399,400,401,402,406],"li",{},"You should have a running ",[403,404,405],"strong",{},"Ubuntu 22.04+ server"," with properly configured SSH access",[399,408,409,410,413],{},"The ",[317,411,412],{},".spin.yml"," file should be configured",[298,415,417],{"id":416},"what-this-command-does","What this command does",[294,419,420],{},"The above command will:",[396,422,423,426,429,432],{},[399,424,425],{},"Connect to your server(s)",[399,427,428],{},"Update the all operating system packages",[399,430,431],{},"Update Docker",[399,433,434],{},"Reboot the server (if needed)",[298,436,438],{"id":437},"options","Options",[294,440,441],{},"The following options are available to set when running this command.",[443,444,445,464],"table",{},[446,447,448],"thead",{},[449,450,451,455,458,461],"tr",{},[452,453,454],"th",{},"Option",[452,456,457],{},"Short",[452,459,460],{},"Default",[452,462,463],{},"Description",[465,466,467,494,514,534,556],"tbody",{},[449,468,469,475,478,483],{},[470,471,472],"td",{},[317,473,474],{},"environment",[470,476,477],{},"-",[470,479,480],{},[317,481,482],{},"all",[470,484,485,486,489,490,493],{},"Optional. The target environment to maintain (e.g., ",[317,487,488],{},"production",", ",[317,491,492],{},"staging",").",[449,495,496,501,506,511],{},[470,497,498],{},[317,499,500],{},"--host",[470,502,503],{},[317,504,505],{},"-h",[470,507,508],{},[509,510],"none",{},[470,512,513],{},"The hostname or group of hosts you'd like to apply updates to.",[449,515,516,521,526,531],{},[470,517,518],{},[317,519,520],{},"--port",[470,522,523],{},[317,524,525],{},"-p",[470,527,528],{},[317,529,530],{},"22",[470,532,533],{},"The port to SSH into the server with.",[449,535,536,541,546,553],{},[470,537,538],{},[317,539,540],{},"--user",[470,542,543],{},[317,544,545],{},"-u",[470,547,548,549,552],{},"The username of your HOST machine (run ",[317,550,551],{},"whoami"," in a new terminal)",[470,554,555],{},"The user to SSH into the server with.",[449,557,558,563,568,571],{},[470,559,560],{},[317,561,562],{},"--upgrade",[470,564,565],{},[317,566,567],{},"-U",[470,569,570],{},"Check for Ansible collection updates once per day.",[470,572,573],{},"Force upgrade the Ansible Collection on your machine before applying updates.",[575,576,577],"style",{},"html pre.shiki code .soiBB, html code.shiki .soiBB{--shiki-light:#E2931D;--shiki-default:#B392F0;--shiki-dark:#B392F0}html pre.shiki code .s0vBq, html code.shiki .s0vBq{--shiki-light:#91B859;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html pre.shiki code .sMo7A, html code.shiki .sMo7A{--shiki-light:#90A4AE;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sG-J9, html code.shiki .sG-J9{--shiki-light:#39ADB5;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sFfmW, html code.shiki .sFfmW{--shiki-light:#39ADB5;--shiki-default:#F97583;--shiki-dark:#F97583}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":315,"searchDepth":579,"depth":579,"links":580},2,[581,582,583,584],{"id":300,"depth":579,"text":301},{"id":390,"depth":579,"text":391},{"id":416,"depth":579,"text":417},{"id":437,"depth":579,"text":438},"https://serversideup.net/open-source/spin/docs/command-reference/maintain","Command reference for \"spin maintain\"","md","docs",{"head":590},{"title":591},"maintain | Command Reference - Spin by Server Side Up",true,{"title":234,"description":586},"-wZxMZg3ZlPqhvVwTa10N0E70PWJaYNh8snPgF3FdfU",[596,598],{"title":230,"path":231,"stem":232,"description":597,"children":-1},"Command reference for \"spin logs\"",{"title":238,"path":239,"stem":240,"description":599,"children":-1},"Command reference for \"spin mkpasswd\"",1769465041816]