> ## Documentation Index
> Fetch the complete documentation index at: https://docs.krews.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrade

> Upgrade the Aligned Layer operator by checking out the target tag and rebuilding.

<Note>
  You must be **authorized/whitelisted** to operate. Follow the exact tag required by the network announcement.
</Note>

## Rebuild to a target version

```bash theme={null}
# From the repo root
cd ~/aligned_layer || git clone https://github.com/yetanotherco/aligned_layer.git ~/aligned_layer && cd ~/aligned_layer

# Fetch and checkout the target tag (example: v0.19.1; replace as announced)
git fetch --tags
git checkout v0.19.1

# Build (example: testnet)
make operator_build ENVIRONMENT=testnet
# For mainnet:
# make operator_build ENVIRONMENT=mainnet
```

## Restart

```bash theme={null}
# If you used systemd
sudo systemctl restart aligned-operator && journalctl -u aligned-operator -f -o cat

# Or run the binary directly with your config
./operator/build/aligned-operator --config <path_to_config.toml>
```

## Verify

```bash theme={null}
# Local version
./operator/build/aligned-operator --version
```
