# Upgrade to Latest Version

**1. Download and Extract**

* Download the zip package from: <https://wsm.nuvens.co/update>
* Extract to a folder on the IIS EC2 instance.\
  Example: `D:\WSMUpdate`

**2. Run the Updater**

* Run an elevated Command Prompt as Administrator
* Navigate to where the update tool has been extracted
* Run the executable: `WSMUpdate.exe`

{% hint style="info" %}
**Note**: The updater will fetch the latest version automatically and apply the latest migrations using the connection string stored in the Amazon Secret defined by the `WSMCORE_SECRET_KEY` environment variable. Without additional arguments it will apply default parameters which are defined below.
{% endhint %}

**3. Optional Arguments**

You can override the default behaviour by providing command-line arguments:

* `-release [Beta/Stable]`\
  Default: `Stable`\
  Example: `WSMUpdate.exe -release Stable`
* `-path ["D:\WSMDirectory"]`\
  Default: `"D:\PortalCore"`\
  Example: `WSMUpdate.exe -path "D:\PortalCore"`

{% hint style="danger" %}
**Do NOT include square brackets `[]` when entering argument values**
{% endhint %}

{% hint style="info" %}
From Version 6.1.16 the update feature in WorkSpace Manager will automatically do all this for you. Previous versions have an issue applying migrations so the update tool is recommended
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nuvens.cloud/install/upgrade-procedures/upgrade-to-latest-version.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
