--- title: Upgrading an Existing Agent Version deprecated: false hidden: false metadata: robots: index --- This guide describes the steps to upgrade on-premises Moveworks Agent deployments. # Prerequisites * Ensure that the Moveworks Agent is already installed and running on your on-prem network. * You must have access to the **setup_agent.sh script** in the Docker/Podman container where the agent is deployed. If you do not see the setup_agent.sh script, follow these steps to install the script: 1. Download the agent installation script using curl or wget: 1. ```curl curl -fsSL https://get-agent.moveworks.com > setup_agent.sh ``` ```Text wget wget https://get-agent.moveworks.com/ --output-document setup_agent.sh ``` 2. Set the script's permissions to allow execution: 1. ```shell chmod +x setup_agent.sh ``` * Refer to the [Moveworks Agent Installation Guide](/docs/moveworks-agent-installation-guide) if you need to deploy a new Agent. # How To Initiate the Agent Upgrade Process You can use the **--upgrade** to kick off the process : * Log into the VM or Host where the Agent Container is running. You should find the **setup_agent.sh** in the **moveworks_agent** folder * Using the **--upgrade** flag you can initiate the process ``` ./setup_agent.sh -u # or ./setup_agent.sh --upgrade ``` The upgrade script will stop all the running agents and start a new agent with the updated version. *** For questions or issues, Please reach out to your Moveworks Support Team.