Skip to main content

Installation

The Orb CLI (orb) is a native binary compiled from Rust. It runs on Linux, macOS, and Windows without any runtime dependencies. The generated applications require Node.js, but the compiler itself does not.

System Requirements

RequirementPurpose
Any OS (Linux, macOS, Windows)The orb binary is available for all major platforms
Node.js 18+Required for running generated apps via orb compile (not needed for orb serve)
npm or pnpmPackage manager for installing generated app dependencies (not needed for orb serve)

The orb binary itself has zero runtime dependencies. Node.js is only needed when you use orb compile and want to run the generated application manually. If you use orb serve, no external runtime is required at all.

Install via Script (macOS / Linux)

The fastest way to install:

curl -fsSL https://orb.almadar.io/install.sh | sh

This script:

  1. Detects your OS and CPU architecture
  2. Downloads the correct native binary from GitHub releases
  3. Places it in ~/.orb/bin/
  4. Adds ~/.orb/bin to your PATH (updating your shell profile)

After installation, open a new terminal (or source your profile) and verify:

orb --version

Install via npm (Any Platform)

If you already have Node.js installed:

npm install -g @almadar/orb

The npm package includes a postinstall script that downloads the correct native binary for your platform. The package itself is a thin wrapper: all compilation work is done by the native binary, not by Node.js.

This method works on all platforms including Windows, where the shell script is not available.

Install via Homebrew (macOS)

brew tap almadar-io/tap
brew install orb

Homebrew handles updates automatically with brew upgrade orb.

Manual Download

Download a prebuilt binary directly from the GitHub Releases page.

PlatformArchitectureAsset Name
Linuxx86_64orb-linux-x64
LinuxARM64orb-linux-arm64
macOSIntelorb-darwin-x64
macOSApple Siliconorb-darwin-arm64
Windowsx86_64orb-windows-x64.exe

After downloading:

# macOS / Linux
chmod +x orb-*
mv orb-* /usr/local/bin/orb

# Verify
orb --version

On Windows, place the .exe in a directory that is on your PATH, or add its location to PATH via System Settings.

Verify Installation

Run the following to confirm everything is working:

orb --version

You should see output like orb 0.x.y with the version number.

To confirm the compiler can generate code, you can also run:

orb --help

This prints all available commands: validate, compile, serve, dev, format, and others.

The fastest way to see a running app with zero additional setup is orb serve:

orb serve my-app.orb
# Compiles with Hono backend, builds client, serves on http://localhost:3030

This requires no Node.js, no package manager, and no npm install. The orb binary bundles everything needed to compile and serve.

About the Shell Template

When you run orb compile, the compiler generates a full-stack TypeScript application (React frontend, backend server, shared types). By default the backend uses Express. Pass --server hono to generate a Hono backend instead. This generated project needs Node.js and npm to install dependencies and run.

Alternatively, orb serve skips the Node.js requirement entirely. It compiles with a Hono backend, builds the client with Vite, and serves everything using Bun, all bundled inside the orb binary.

The relationship:

your-app.orb          (source: your Orb program)
|
orb compile (native binary, no Node.js needed)
| --server express (default)
| --server hono
|
my-app/ (generated TypeScript project)
packages/client/ (React + Vite, needs Node.js)
packages/server/ (Express or Hono, needs Node.js)
packages/shared/ (shared types)

--- or ---

orb serve (zero-install: compile + build + serve)
| Hono backend, bundled Bun runtime
|
http://localhost:3030 (no Node.js required)

With orb compile, the compiler is a native binary and the output is a Node.js project. These are separate concerns: you can compile on a machine without Node.js, then deploy the generated code elsewhere. With orb serve, everything runs from the single binary.

Next Steps

With the CLI installed, move on to the Quickstart to build and run your first Orb application in under 5 minutes.