> For the complete documentation index, see [llms.txt](https://cotidocs.geordier.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cotidocs.geordier.co.uk/upgrading-your-node.md).

# Upgrading your node

We have a new upgrade script you will be pleased to know!\
\
To upgrade your node, login as root and once logged in run the following code.

```
cd ~
rm -rf upgrade.sh
wget -O upgrade.sh https://raw.githubusercontent.com/Geordie-R/coti-node-upgrade/main/upgrade.sh && chmod +x upgrade.sh
./upgrade.sh
```

You will be asked a series of questions once you run the code above.

* You will be asked if you are upgrading a node on the testnet or mainnet. Type number 1 for the mainnet or 2 for the testnet then press enter.
* You will be asked for your ubuntu username the node is installed under.  Leave it empty and press enter if you used "coti" originally.
* You will be asked what version of the node software you would like to install. Type the number if you know it in this format: 3.1.0 then press enter. If you leave it empty it will use the latest version.  Please note if a brand new release has just been released i may not have had time to update the latest version in the script so just type it in manually if you are upgrading to a brand new release.

If all goes well you should see UPGRADE COMPLETE! in giant letters!

#### Credits

Thanks to Cryptofirebird for the collaboration with code and testing! Checkout his excellent website with lots of useful features here: <https://coti.nebula-tech.io/>

{% hint style="danger" %}

Once you have completed the above two steps, you can [go here to check ](/installing-the-node/finally-checking-youre-up.md)if you are up.
{% endhint %}
