Skip to main content

Download Orb CLI

The Orb CLI (orb) is the command-line tool for validating, compiling, and working with .orb schemas.

Quick Install

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

npm

npm install -g @almadar/orb

Homebrew (macOS/Linux)

brew install almadar/tap/orb

Cargo (Rust developers)

cargo install orb-cli

Platform-Specific Downloads

Linux

ArchitectureFormatDownload
x86_64tar.gzorb-linux-x86_64.tar.gz
x86_64deborb_x86_64.deb
x86_64rpmorb-x86_64.rpm
ARM64tar.gzorb-linux-aarch64.tar.gz

Installation (tar.gz):

tar -xzf orb-linux-x86_64.tar.gz
sudo mv orb /usr/local/bin/

Installation (deb):

sudo dpkg -i orb_x86_64.deb

macOS

ArchitectureFormatDownload
Intel (x86_64)tar.gzorb-macos-x86_64.tar.gz
Apple Silicon (ARM64)tar.gzorb-macos-aarch64.tar.gz
Universalpkgorb-macos.pkg

Installation (tar.gz):

tar -xzf orb-macos-aarch64.tar.gz
sudo mv orb /usr/local/bin/

Windows

ArchitectureFormatDownload
x86_64ziporb-windows-x86_64.zip
x86_64msiorb-windows-x86_64.msi

Installation (winget):

winget install Almadar.Orb

Installation (zip):

  1. Extract orb-windows-x86_64.zip
  2. Add the extracted folder to your PATH
  3. Restart your terminal

Verify Installation

orb --version
# Orb CLI v1.0.0

orb --help
# Orb - The Physics of Software
#
# USAGE:
# orb <COMMAND>
#
# COMMANDS:
# validate Validate an .orb schema
# compile Compile schema to target shell
# serve Compile and serve (zero-install)
# format Format an .orb schema
# dev Start development server
# test Run state machine tests
# new Create a new project
# help Print this message

Basic Usage

Validate a Schema

orb validate my-app.orb
# ✓ Schema is valid
# ✓ 3 orbitals, 5 traits, 8 entities

Compile to TypeScript

orb compile my-app.orb --shell typescript --output ./generated
# ✓ Generated 24 files
# ✓ Output: ./generated

By default, the compiled app uses an Express backend. To generate a Hono backend instead, pass the --server hono flag:

orb compile my-app.orb --shell typescript --server hono --output ./generated

Serve (Zero-Install)

Compile and serve a full-stack app from a .orb file with zero dependencies. Compiles with a Hono backend, builds the client with Vite, and serves everything on a single port using the bundled Bun runtime.

orb serve my-app.orb              # Serve on port 3030
orb serve my-app.orb --port 8080 # Custom port
orb serve my-app.orb --open # Open browser after start
orb serve my-app.orb --no-build # Skip rebuild, serve existing

No Node.js, no package manager, no installation steps. The orb binary includes Bun and the Hono shell template. One command from .orb to running app.

Start Development Server

orb dev my-app.orb
# Starting Orb dev server...
# ✓ Schema loaded: my-app.orb
# ✓ Server: http://localhost:3000
# ✓ Client: http://localhost:5173
#
# Watching for changes...

Run Tests

orb test my-app.orb
# Running state machine tests...
# ✓ TaskLifecycle: 12 transitions tested
# ✓ UserAuth: 8 transitions tested
# ✓ All guards evaluated
#
# Tests: 20 passed, 0 failed

Create New Project

orb new my-app
# ✓ Created my-app/
# ✓ Created my-app/schema.orb
# ✓ Created my-app/orb.config.json
#
# Get started:
# cd my-app
# orb dev

Configuration

Create an orb.config.json in your project root:

{
"$schema": "https://almadar.io/schemas/config.json",
"schema": "./schema/my-app.orb",
"output": "./src/generated",
"shell": "typescript",
"locale": "en",
"features": {
"hotReload": true,
"generateTypes": true,
"generateDocs": true
}
}

Then simply run:

orb compile
# Uses settings from orb.config.json

Locale Support

Orb supports multiple languages for error messages and operator aliases:

# English (default)
orb validate schema.orb --locale en

# Arabic
orb validate schema.orb --locale ar
# ✓ المخطط صالح
# ✓ ٣ مدارات، ٥ سمات، ٨ كيانات

Next Steps


Troubleshooting

"Command not found"

Ensure the binary is in your PATH:

# Check where orb is installed
which orb

# Add to PATH if needed (add to ~/.bashrc or ~/.zshrc)
export PATH="$PATH:/path/to/orb"

Permission Denied (Linux/macOS)

chmod +x /usr/local/bin/orb

Windows Defender Warning

The orb.exe binary is signed but may trigger Windows Defender on first run. Click "More info" → "Run anyway" or add an exception.


Need help? Join our Discord or open an issue.