Skip to content

Installation

This guide covers all supported installation methods for ReArch, including local development, Docker, and cloud deployments.

RequirementMinimumRecommended
CPU2 cores4+ cores
RAM4 GB8+ GB
Disk2 GB free10+ GB free
Node.jsv18.0v20+ LTS
OSmacOS, Linux, Windows (WSL2)macOS or Linux

Bun is the recommended package manager for ReArch projects due to its speed and compatibility.

Terminal window
# Install Bun if you haven't already
curl -fsSL https://bun.sh/install | bash
# Install ReArch CLI globally
bun install -g @rearch/cli
# Verify installation
rearch --version
Terminal window
npm install -g @rearch/cli
rearch --version

For containerized environments, use the official Docker image:

Terminal window
docker pull rearch/rearch:latest
docker run -it --rm -v $(pwd):/app rearch/rearch:latest init my-project

Create a docker-compose.yml file:

version: '3.8'
services:
rearch:
image: rearch/rearch:latest
ports:
- "3000:3000"
volumes:
- ./src:/app/src
environment:
- NODE_ENV=development
- REARCH_API_KEY=${REARCH_API_KEY}

Then run:

Terminal window
docker compose up -d

After installing, run the setup wizard to configure your environment:

Terminal window
rearch setup

This will guide you through:

  1. Authenticating with your ReArch account
  2. Selecting a default workspace
  3. Configuring local preferences
  4. Setting up editor integrations

Permission denied errors on macOS/Linux:

Terminal window
sudo chown -R $(whoami) /usr/local/lib/node_modules

Bun not found after installation:

Add Bun to your PATH by adding this to your shell profile (~/.bashrc, ~/.zshrc, etc.):

Terminal window
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

Docker socket permission denied:

Terminal window
sudo usermod -aG docker $USER
newgrp docker