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

# Updates

> Keep the SimpleCloud CLI and serverhost up to date

The serverhost updates itself automatically and restarts when a new version is assigned to it. This restart does not stop the Minecraft servers running on the serverhost. The CLI does not update automatically, but it tells you when a new version is available.

These updates only cover SimpleCloud. They do not update your Minecraft server software or plugins.

## Update the CLI

Run:

```bash theme={null}
sc upgrade cli
```

The command replaces the CLI with the latest release. It does not restart the serverhost or any Minecraft servers.

Run `sc --version` afterward to confirm the installed version.

## Update the serverhost now

You normally do not need to update the serverhost yourself. To install an available update immediately, run this command from your SimpleCloud installation directory:

```bash theme={null}
sc restart --update
```

<Warning>
  This command updates and restarts the serverhost. Run it during a maintenance window. SimpleCloud asks whether it should also stop the Minecraft servers running on this serverhost, unless you saved this choice earlier.
</Warning>

After the command completes, confirm that the serverhost is running:

```bash theme={null}
sc status serverhost
```

If the serverhost does not start, inspect its logs:

```bash theme={null}
sc logs serverhost
```

Fix the reported problem, then run `sc start serverhost` to start it again.

## Other update options

<AccordionGroup>
  <Accordion title="Download updates without restarting">
    Use `sc upgrade` to update the CLI and all installed SimpleCloud components, or `sc upgrade serverhost` to download only the serverhost update.

    ```bash theme={null}
    sc upgrade
    sc upgrade serverhost
    ```

    These commands do not restart running components. Restart the serverhost when you are ready to use its new version.
  </Accordion>

  <Accordion title="Install a specific serverhost version">
    To test or roll back a release, download the version you want:

    ```bash theme={null}
    sc upgrade serverhost@<version>
    ```

    The command does not restart the serverhost. Run `sc restart serverhost` when you are ready to use the selected version.
  </Accordion>

  <Accordion title="Fix a CLI update">
    If the CLI installation is not writable by your user, run `sudo sc upgrade cli`. If the installation is damaged but already current, reinstall it with:

    ```bash theme={null}
    sc upgrade cli --cli-force
    ```

    When the CLI is several releases behind, it may require an update before other commands can run.
  </Accordion>
</AccordionGroup>
