# Step 7: Updating your node

Following these steps will help you set up and maintain your Xai Sentry Node effectively. Remember to regularly check for updates and monitor your node’s performance.

1. Login to your server using the `ssh` command from your terminal:

```
ssh $USER@$REMOTE_SERVER
```

2. Reattach to your Screen session:

```
screen -r <screen_id>
```

3. Replace the following values:\
   \- `<screen_id>` - the id of your current Screen session\
   \- Example: `screen -r 82824`
4. Stop the operator:

* `ctrl + c` (Windows)
* `control + c` (macOS)

5. Remove your current CLI:

```
rm sentry-node-cli-linux sentry-node-cli-linux.zip
```

7. Download the latest CLI.  You don't need to download the file on your computer since this command takes it from the GitHub website.

```
curl -L -o sentry-node-cli-linux.zip https://github.com/xai-foundation/sentry/releases/latest/download/sentry-node-cli-linux.zip
```

8. Unzip the file:

```
unzip sentry-node-cli-linux.zip
```

9. Start CLI:

```
./sentry-node-cli-linux
```

10. Boot the operator:

```
boot-operator
```

11. Paste the private key of your **Sentry Wallet** and press `Enter`.
12. Wait until the operator has finished booting and you see the following message:

```
The operator has finished booting. The operator is running successfully. esXAI will accrue every few days.
Health check complete, subscription to 'ChallengeSubmitted' is still active.
```

13. Detach from your Screen session:

* `ctrl a + d` (Windows)
* `control a + d` (macOS)

14. Logout from your server:

```
logout
```

{% hint style="info" %}
To KYC and view rewards, you need the desktop app, which is not covered in the CLI.
{% endhint %}


---

# 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://xai-foundation.gitbook.io/xai-network/en/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/how-do-i-run-a-xai-node-on-vps/step-7-updating-your-node.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.
