# Update

## Checking for AutoNode updates

AutoNode will quickly check for an update on each execution of the `auto-node` command. If there is an update you will see the following message:

![](https://3781397247-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlEOlYqEG_GKuO5Rehq%2F-MAFXZPFb4YuwHP6SLad%2F-MAFhB5ukqG5OIaxSJq5%2Fimage.png?alt=media\&token=6de373d0-e6d1-4c7c-ac73-e097365fa894)

## Updating AutoNode

{% hint style="warning" %}
You will need to briefly stop your node to execute an update. Updates should be fast.
{% endhint %}

### Step 0: (Optional) Stop Auto&#x20;

Kill your AutoNode with the following command:

```
auto-node kill
```

> Note that if you are still elected and signing, AutoNode will ask for you to confirm before killing your node.

### Step 1: Start the update

You can start the update with the following command:

```
auto-node update
```

> Note that AutoNode will check to make sure the harmony node is stopped. If it detects that the harmony node is still running, It will ask to kill itself before starting the update.

{% hint style="success" %}
You can also re-run the install script from step 3 of the **Install & Run** script to update AutoNode
{% endhint %}

### Step 2: Restart/Rerun your AutoNode

Make sure to restart your AutoNode after the update to resume validating or operations.\
For a validator, it will most likely be:

```
auto-node run
```

> **DO NOT** restart AutoNode with the `--clean` or `--fast-sync` as it will probably regress your block hight (since it edits the DB files).

## Updating `hmy` CLI

For your convenience, AutoNode wraps the `hmy` [CLI. ](https://docs.harmony.one/home/wallets/harmony-cli)You can update it with the following command:

```
auto-node hmy-update
```
