# Upgrade

**Manual**

```
cd $HOME
rm -rf nibiru
git clone https://github.com/NibiruChain/nibiru.git
cd nibiru
git checkout v2.12.0
make install
sudo systemctl restart nibid && sudo journalctl -u nibid -f --no-hostname -o cat
```

**Auto**

```
cd $HOME && \
rm -rf nibiru && \
git clone https://github.com/NibiruChain/nibiru.git && \
cd nibiru && \
git checkout  v2.12.0 && \
make build && \
old_bin_path=$(which nibid) && \
home_path=$HOME && \
rpc_port=$(grep -m 1 -oP '^laddr = "\K[^"]+' "$HOME/.nibid/config/config.toml" | cut -d ':' -f 3) && \
tmux new -s nibiru-upgrade "sudo bash -c 'curl -s https://raw.githubusercontent.com/appieasahbie/testnet-guides/main/utils/autoupgrade/upgrade.sh | bash -s -- -u \"40511000\" -b nibid -n \"$HOME/nibiru/build/nibid\" -o \"$old_bin_path\" -h \"$home_path\" -p \"undefined\" -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/nibiru/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.
