# 🚀 Installation frislit consists of the **server** (Node.js) and the **CLI** (a single Rust binary called `frislit`). ## 🐳 Docker ```sh docker run -d \ --name frislit \ --restart always \ -p 127.0.0.1:8080:8080 \ -v frislit-data:/app/data \ -e FRISLIT_BASE_DOMAIN=frislit.example.com \ -e FRISLIT_PUBLIC_URL=https://frislit.example.com \ -e FRISLIT_TRUST_PROXY=true \ fristy/frislit:latest ``` Then open `https://frislit.example.com/@frislit` and follow the setup wizard. > [!IMPORTANT] > Mount `/app/data`. That volume holds your admin account, the settings you change in the web UI and the generated > CLI token - without it they are gone when the container is recreated. ## 📦 Docker Compose ```yaml services: frislit: image: fristy/frislit:latest restart: always ports: - "127.0.0.1:8080:8080" volumes: - frislit-data:/app/data environment: FRISLIT_BASE_DOMAIN: frislit.example.com FRISLIT_PUBLIC_URL: https://frislit.example.com FRISLIT_TRUST_PROXY: "true" volumes: frislit-data: ``` Prefer a file? Mount a `config.yml` to `/app/data/config.yml` instead of setting environment variables (see [Configuration](/configuration)). Environment variables always win over the file. > [!NOTE] > Both examples above put a proxy in front, so they bind to `127.0.0.1` and set `FRISLIT_TRUST_PROXY`, which makes > frislit believe the `X-Forwarded-*` headers it receives. frislit can hold its own certificate instead and bind 443 > itself; see [HTTPS](/https). Then open `https://frislit.example.com/@frislit` and run the setup wizard, or skip it by mounting a `config.yml` with `baseDomain` and `publicUrl` already filled in. Accounts and everything you change in the web UI live in the mounted volume (see [Configuration](/configuration)). ## ⌨️ CLI One line on Linux: ```sh curl -fsSL https://git.fristy.net/fristy/frislit/raw/branch/main/packaging/install/install | sh ``` And on Windows: ```powershell irm https://git.fristy.net/fristy/frislit/raw/branch/main/packaging/install/install.ps1 | iex ``` The script downloads the latest release from this repository: it runs the MSI installer on Windows, and puts the plain binary in `/usr/local/bin` (or `~/.local/bin`) on Linux. macOS is not built by this fork; build from source with `cargo build --release --manifest-path cli/Cargo.toml`. ### Manual download Every release on carries the CLI binaries (`frislit-linux-x64`, `frislit-linux-arm64`, `frislit-windows-x64.exe`, `frislit-windows-arm64.exe`), the MSI installers (`frislit-x64.msi`, `frislit-arm64.msi`) and the `frislit-cli-*.deb` / `frislit-cli-*.rpm` packages. There is no apt or rpm repository. ### Updating ```sh frislit update ``` Replaces a plain binary in place, or downloads and runs the new installer on Windows. When frislit came from a package manager it says so and leaves updating to it. The CLI checks for a new release once a day and mentions it in the terminal UI, the desktop app shows an **Update and restart** button under Settings. Then log in: ```sh frislit login ``` Or open the desktop app with `frislit gui` and link the device there. `frislit links register` makes `frislit://` links open in it. Continue with the [CLI guide](/cli).