> For the complete documentation index, see [llms.txt](https://services.stakeandrelax.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.stakeandrelax.net/mainnet/dymension/upgrade.md).

# Upgrade

<figure><img src="https://raw.githubusercontent.com/StakeandRelax-Validator/documentation/main/Logos/dymension.png" alt="" width="150"><figcaption></figcaption></figure>

**Chain ID**: dymension\_1100-1 | **Latest Version Tag**: v4.0.0

{% hint style="info" %}
Since we are using Cosmovisor, it makes it very easy to prepare for upcomming upgrade. You just have to build new binaries and move it into cosmovisor upgrades directory.
{% endhint %}

## Download and build upgrade binaries

```bash
# Clone project repository
cd $HOME
rm -rf dymension
git clone https://github.com/dymensionxyz/dymension.git dymension
cd dymension
git checkout v4.0.0

# Build binaries
make build && make install

# Prepare binaries for Cosmovisor
mkdir -p $DAEMON_HOME/cosmovisor/upgrades/v4.0.0/bin && cp $HOME/go/bin/dymd $DAEMON_HOME/cosmovisor/upgrades/v4.0.0/bin
$DAEMON_HOME/cosmovisor/upgrades/v4.0.0/bin/dymd version
rm -rf build
```

*Thats it! Now when upgrade block height is reached, Cosmovisor will handle it automatically!*
