Installation
rCommerce ships as a single static binary. There is no runtime to install and no dependencies beyond PostgreSQL.
Install script (recommended)
Section titled “Install script (recommended)”curl -fsSL https://assets.rcommerce.app/install.sh | sudo shThe 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:
# Install a specific version instead of the latestsudo RCOMMERCE_VERSION=0.1.1 sh install.sh
# On Linux, use the fully static (musl) buildsudo RCOMMERCE_VARIANT=static sh install.shManual binary download
Section titled “Manual binary download”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.
| Platform | Filename |
|---|---|
| Linux x86-64 (glibc) | rcommerce-x86_64-linux-gnu |
| Linux ARM64 (glibc) | rcommerce-aarch64-linux-gnu |
| Linux ARMv7 | rcommerce-armv7-linux |
| Linux RISC-V 64 | rcommerce-riscv64gc-linux-gnu |
| Linux x86-64 static (musl) | rcommerce-x86_64-linux-static |
| Linux ARM64 static (musl) | rcommerce-aarch64-linux-static |
| macOS Apple Silicon | rcommerce-macos-arm64 |
| macOS Intel | rcommerce-macos-x86_64 |
| macOS universal | rcommerce-macos-universal |
| FreeBSD x86-64 | rcommerce-x86_64-freebsd |
The static (musl) builds run on any Linux distro, including ones with an older glibc.
Example — Linux x86-64:
curl -LO https://assets.rcommerce.app/latest/rcommerce-x86_64-linux-gnucurl -LO https://assets.rcommerce.app/latest/rcommerce-x86_64-linux-gnu.sha256sha256sum -c rcommerce-x86_64-linux-gnu.sha256chmod +x rcommerce-x86_64-linux-gnusudo mv rcommerce-x86_64-linux-gnu /usr/local/bin/rcommerceBuild from source
Section titled “Build from source”git clone https://github.com/PDG-Global/rcommerce.gitcd rcommercecargo build --releaseRequires Rust 1.70+.
Verify the installation
Section titled “Verify the installation”rcommerce --version# rcommerce 0.1.1Next step
Section titled “Next step”Quickstart — connect to PostgreSQL and start serving.