# Upgrade

### Upgrade height: 16906500

### Manual upgrade <a href="#manual" id="manual"></a>

```bash
cd $HOME
rm -rf haqq
git clone https://github.com/haqq-network/haqq.git
cd haqq
git checkout v1.8.5
make build
sudo mv $HOME/haqq/build/haqqd $(which haqqd)
sudo systemctl restart haqqd && sudo journalctl -u haqqd -f
```

### Auto upgrade <a href="#auto" id="auto"></a>

Don't kill the session with CTRL+C before update is completed, if you want to disconnect the session use CTRL+B D

```bash
cd $HOME && \
rm -rf haqq && \
git clone https://github.com/haqq-network/haqq.git && \
cd haqq && \
git checkout v1.8.5 && \
make build && \
old_bin_path=$(which haqqd) && \
home_path=$HOME && \
rpc_port=$(grep -m 1 -oP '^laddr = "\K[^"]+' "$HOME/.haqqd/config/config.toml" | cut -d ':' -f 3) && \
tmux new -s haqq-upgrade "sudo bash -c 'curl -s https://raw.githubusercontent.com/appieasahbie/testnet-guides/main/utils/autoupgrade/upgrade.sh | bash -s -- -u \"17716000\" -b haqqd -n \"$HOME/haqq/build/haqqd\" -o \"$old_bin_path\" -h \"$home_path\" -p \"https://api.haqq.aknodes.net/cosmos/gov/v1/proposals/45\" -r \"$rpc_port\"'"
```


---

# 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://services.aknodes.com/mainnet-networks/haqq/upgrade.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.
