Skip to content

Installation

rCommerce ships as a single static binary. There is no runtime to install and no dependencies beyond PostgreSQL.

Terminal window
curl -fsSL https://assets.rcommerce.app/install.sh | sudo sh

The script resolves the latest version, downloads the right prebuilt binary for your platform from the download CDN, verifies its sha256 checksum, and installs it to /usr/local/bin. On Linux it also creates an rcommerce system user, a config skeleton at /etc/rcommerce/config.toml, and a systemd service.

Useful overrides:

Terminal window
# Install a specific version instead of the latest
sudo RCOMMERCE_VERSION=0.1.1 sh install.sh
# On Linux, use the fully static (musl) build
sudo RCOMMERCE_VARIANT=static sh install.sh

Prebuilt binaries are published to the download CDN under each release version, and attached to the corresponding git tag release (GitHub, with a Gitee mirror). Each file has a .sha256 sidecar, and SHA256SUMS.txt lists all checksums for the release.

PlatformFilename
Linux x86-64 (glibc)rcommerce-x86_64-linux-gnu
Linux ARM64 (glibc)rcommerce-aarch64-linux-gnu
Linux ARMv7rcommerce-armv7-linux
Linux RISC-V 64rcommerce-riscv64gc-linux-gnu
Linux x86-64 static (musl)rcommerce-x86_64-linux-static
Linux ARM64 static (musl)rcommerce-aarch64-linux-static
macOS Apple Siliconrcommerce-macos-arm64
macOS Intelrcommerce-macos-x86_64
macOS universalrcommerce-macos-universal
FreeBSD x86-64rcommerce-x86_64-freebsd

The static (musl) builds run on any Linux distro, including ones with an older glibc.

Example — Linux x86-64:

Terminal window
curl -LO https://assets.rcommerce.app/latest/rcommerce-x86_64-linux-gnu
curl -LO https://assets.rcommerce.app/latest/rcommerce-x86_64-linux-gnu.sha256
sha256sum -c rcommerce-x86_64-linux-gnu.sha256
chmod +x rcommerce-x86_64-linux-gnu
sudo mv rcommerce-x86_64-linux-gnu /usr/local/bin/rcommerce
target/release/rcommerce
git clone https://github.com/PDG-Global/rcommerce.git
cd rcommerce
cargo build --release

Requires Rust 1.70+.

Terminal window
rcommerce --version
# rcommerce 0.1.1

Quickstart — connect to PostgreSQL and start serving.