Install
Cratebase ships as a single binary with the admin dashboard compiled in — there is nothing else to install.
macOS / Linux
Section titled “macOS / Linux”curl -fsSL https://cratebase.dev/install.sh | shThis resolves the latest release for your OS/architecture, verifies its
sha256 checksum before touching disk, and installs cratebase to
~/.local/bin (override with $CRATEBASE_INSTALL). See
the script itself — it’s served byte-for-byte from this
site, so curl -s https://cratebase.dev/install.sh shows you exactly
what will run before you pipe it into a shell.
Prebuilt binaries are published for:
| Target | OS | Arch |
|---|---|---|
x86_64-unknown-linux-musl |
Linux | x86_64 |
aarch64-unknown-linux-musl |
Linux | arm64 |
x86_64-apple-darwin |
macOS | x86_64 |
aarch64-apple-darwin |
macOS | Apple Silicon |
x86_64-pc-windows-msvc |
Windows | x86_64 |
Docker (recommended for servers)
Section titled “Docker (recommended for servers)”docker run -p 8090:8090 -v cratebase_data:/app/data ghcr.io/cratebasehq/cratebase:latestThat’s SQLite plus local-disk storage, listening on :8090. Pin a
version instead of latest with ghcr.io/cratebasehq/cratebase:0.1.0.
Using docker compose? A docker compose up with
--profile postgres --profile s3 swaps in Postgres and S3-compatible
storage — see .env.example
for every configuration option.
Windows
Section titled “Windows”There is no POSIX sh on stock Windows, so the curl | sh one-liner
above doesn’t apply. Either:
- Download
cratebase_<version>_x86_64-pc-windows-msvc.zipfrom the latest GitHub release, unzip it, and runcratebase.exe serve, or - Use the Docker command above (works identically under Docker Desktop on Windows).
From source
Section titled “From source”git clone https://github.com/cratebasehq/cratebasecd cratebasebun install && bun run admin:build # builds the embedded dashboard oncecargo build --release -p cratebase-server./target/release/cratebase serveThe admin dashboard has to be built once with Bun before the Rust binary
picks it up (web/admin/dist is embedded at compile time via
rust-embed) — see Architecture for why
it works this way.
Verifying the download yourself
Section titled “Verifying the download yourself”Every release archive on GitHub has a matching .sha256 file next to
it. install.sh checks this automatically; to verify a manual download:
sha256sum -c cratebase_<version>_<target>.zip.sha256Continue to First run to create your first superuser and collection.