# <REI@3.0.X> Upgrade Guide

### Requirements

| System | CPU     | Requirements                 |
| ------ | ------- | ---------------------------- |
| darwin | x86\_64 | MacOS 12.0.0+                |
|        | arm64   | MacOS 12.0.0+                |
| linux  | x86\_64 | glibc 2.28+, glibcxx 3.4.25+ |
|        | arm64   | not supported                |

### Upgrade methods

* **Upgrade from** `npm`:

```
npm install -g @rei-network/cli
```

* **Upgrade from source code:**

```
git clone https://github.com/REI-Network/rei && cd rei
git checkout 3.0.2
npm install
cd packages/cli
npm link
```

### Check if the upgrade succeeds

* **Command line:**

Run

```
rei --version
```

Check whether the printed version is`3.0.2`

* **RPC:**

{% hint style="info" %}
**NOTE:** Please make sure the node turns on `rpc` module, and turns on `rei` API
{% endhint %}

Run (please replace `REI_RPC_PORT`)

```
curl -X POST -H 'Content-Type: application/json' --data '{"id":0,"jsonrpc":"2.0","method":"rei_getVersion","params":[]}' http://127.0.0.1:${REI_RPC_PORT}
```

Check whether the printed version is`3.0.2`
