Installation
This guide covers all supported installation methods for ReArch, including local development, Docker, and cloud deployments.
System Requirements
Section titled “System Requirements”| Requirement | Minimum | Recommended |
|---|---|---|
| CPU | 2 cores | 4+ cores |
| RAM | 4 GB | 8+ GB |
| Disk | 2 GB free | 10+ GB free |
| Node.js | v18.0 | v20+ LTS |
| OS | macOS, Linux, Windows (WSL2) | macOS or Linux |
Installation Methods
Section titled “Installation Methods”Using Bun (Recommended)
Section titled “Using Bun (Recommended)”Bun is the recommended package manager for ReArch projects due to its speed and compatibility.
# Install Bun if you haven't alreadycurl -fsSL https://bun.sh/install | bash
# Install ReArch CLI globallybun install -g @rearch/cli
# Verify installationrearch --versionUsing npm
Section titled “Using npm”npm install -g @rearch/clirearch --versionUsing Docker
Section titled “Using Docker”For containerized environments, use the official Docker image:
docker pull rearch/rearch:latestdocker run -it --rm -v $(pwd):/app rearch/rearch:latest init my-projectDocker Compose
Section titled “Docker Compose”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:
docker compose up -dPost-Installation
Section titled “Post-Installation”After installing, run the setup wizard to configure your environment:
rearch setupThis will guide you through:
- Authenticating with your ReArch account
- Selecting a default workspace
- Configuring local preferences
- Setting up editor integrations
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Permission denied errors on macOS/Linux:
sudo chown -R $(whoami) /usr/local/lib/node_modulesBun not found after installation:
Add Bun to your PATH by adding this to your shell profile (~/.bashrc, ~/.zshrc, etc.):
export BUN_INSTALL="$HOME/.bun"export PATH="$BUN_INSTALL/bin:$PATH"Docker socket permission denied:
sudo usermod -aG docker $USERnewgrp dockerFurther Reading
Section titled “Further Reading”- Getting Started Guide for your first project
- Configuration Guide for customizing your setup
- Environment Variables Reference for all config options