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

# Upgrade to v3.1.2

> SKALE node upgrade steps from 3.1.1 to 3.1.2

## Upgrade steps for the SGX server

<Steps>
  1. Go to run\_sgx folder
     ```bash theme={null}
     cd sgxwallet/run_sgx
     ```

  2. Backup `sgx_data` folder and SGX backup key

  3. Pull recent changes
     ```bash theme={null}
     git checkout stable && git pull
     ```
     If there any conflicts, please, contact the SKALE team

  4. Restart the container

     ```bash theme={null}
     docker compose down && docker compose up -d
     ```
</Steps>

## Upgrade steps for the node server

<Steps>
  1. Disable docker-lvmpy
     ```bash theme={null}
     systemctl stop docker-lvmpy && systemctl disable docker-lvmpy
     ```

  2. Download new node-cli binary

     ```bash theme={null}
     curl -L https://github.com/skalenetwork/node-cli/releases/download/2.6.1/skale-2.6.1-Linux-x86_64 > /usr/local/bin/skale
     ```

  3. Verify node-cli binary hash sum

     ```bash theme={null}
     sha512sum /usr/local/bin/skale
     ```

     Expected checksum

     ```bash theme={null}
     5faf3eb1bffe00a4172f7f34570b84bed2ff051b40b3bc97b249ee74e07ea2dee5991297bbe8071c50ad01fa718d9ebbe9fc4d397324b4fa05950d11e891a179
     ```

  4. Make node-cli executable
     ```bash theme={null}
     chmod +x /usr/local/bin/skale
     ```

  5. Run update procedure
     ```bash theme={null}
     skale node update .env --yes
     ```
</Steps>
