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

# Install and update

> The install script, what it checks, pinning a version, and installing by hand.

## The install script

```bash theme={"theme":"css-variables"}
curl -fsSL https://ephemera.run/install | sh
```

`ephemera.run/install` redirects to `install.sh` from the latest GitHub release. The script:

1. Picks the archive for your OS and CPU: Linux or macOS, x86\_64 or arm64.
2. Downloads it and the release's `checksums.txt` over HTTPS, and checks the archive's SHA-256.
3. Installs one binary, `ephemera`, in `/usr/local/bin` if that's writable, or `~/.local/bin` otherwise.

Nothing else on the machine is changed. It needs `curl` or `wget`.

| Variable | Meaning |
| - | - |
| `EPHEMERA_VERSION` | A release tag such as `v0.1.1`. Default: the latest |
| `EPHEMERA_INSTALL_DIR` | Where to put the binary |
| `EPHEMERA_DOWNLOAD_URL` | A mirror holding the release files. Default: GitHub |

Pin a version in CI so a new release can't change a build under you:

```bash theme={"theme":"css-variables"}
curl -fsSL https://ephemera.run/install | EPHEMERA_VERSION=v0.1.1 sh
```

## Update

Run the script again. It replaces the binary with the latest release, or the one `EPHEMERA_VERSION` names. Your login, pinned host keys and records stay where they are.

## By hand

Download the archive for your platform and `checksums.txt` from the [releases page](https://github.com/pyjeebz/ephemera/releases), check the archive with `sha256sum -c`, and put `ephemera` on your `PATH`. On Windows, download the zip.

## The host installer

```bash theme={"theme":"css-variables"}
curl -fsSL https://ephemera.run/host | sudo sh -s -- ej_...
```

`ephemera.run/host` redirects to `install-host.sh` from the latest release. On an x86\_64 Linux machine with KVM, it:

1. Installs Firecracker 1.15.1, checked against a SHA-256 pinned in the script.
2. Downloads the release's host archive and `checksums.txt`, and checks the archive.
3. Builds the guest image from the archive's guest agent, again whenever the guest agent changes.
4. Writes `/etc/ephemera/ephemera.env`, installs the `ephemera-host` systemd service, joins with the code, and waits until the host is connected.

It takes `EPHEMERA_VERSION` and `EPHEMERA_DOWNLOAD_URL` like the CLI's script, and `--help` lists its options. [Add a host](/docs/guides/hosts.md) walks through it. The central server, for [self-hosting](/docs/self-hosting.md), installs from a checkout.

## Check it

```bash theme={"theme":"css-variables"}
ephemera version
```

```text theme={"theme":"css-variables"}
ephemera v0.1.1
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.