# How to update near mainnet node

## stop the node

```
sudo systemctl stop neard
```

## change to nearcore directory

```
cd nearcore
```

## Fetch and checkout last relesease tin this exampe i use version 1.31.0

* you can find lates version here alwasy use stable version
* be sure you update the node inside screen

```
screen # and press enter
```

## Find lates release here

```
https://github.com/near/nearcore/releases
```

```
git fetch 
git checkout 1.32.1
make release
sudo systemctl start neard && journalctl -n 100 -f -u neard | ccze -A
```


---

# 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.konsortech.xyz/node/mainnet/near/update.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.
