Skip to main content
The Orionjs CLI is a command-line tool that helps you develop, build, and run Orionjs applications. Starting with v4.3, it defaults to Bun as the runtime.

Installation

The CLI is part of the @orion-js/core package.

Available Commands

orion dev

Runs your Orionjs application in development mode with automatic restart on file changes.
Options:
  • --node: Use Node.js instead of Bun
  • --repl: Enable REPL endpoint for orion repl (see below)
  • --no-typecheck: Disable continuous TypeScript diagnostics
  • --shell: Opens a shell in Chrome developer tools
  • --clean: Build the TypeScript project from scratch
What happens under the hood: The development bundle rebuilds independently from TypeScript diagnostics so large projects restart as soon as runnable JavaScript is ready. TypeScript continues checking in parallel and stops an invalid application only after it has a real diagnostic; merely starting a check does not interrupt the server. Syntax and bundle errors stop the application immediately. Use --no-typecheck only when continuous diagnostics are not wanted, or run orion check for an additional one-off check.

orion prod

Starts an Orionjs application in production mode.
Options:
  • --node: Use Node.js instead of Bun
  • --path [path]: Specify a pre-compiled build directory (Node.js only)
What happens under the hood:

orion build

Compiles the application using esbuild for Node.js deployment.

orion check

Runs TypeScript type checking without emitting files.

orion info

Shows the available runtimes and the default runtime.

orion repl

Evaluates a TypeScript expression against a running Orionjs dev server. Requires orion dev --repl to be running.
Options:
  • -e, --expression <expr>: (Required) The expression to evaluate
  • --port <port>: Port of the dev server (default: auto-detect from .orion/port)
Examples:
See the REPL guide for more details.

orion create

Creates a new Orionjs project from the starter kit.

Environment Variables Integration

Orionjs CLI automatically integrates with @orion-js/env. To use encrypted environment variables, set these two variables:
See the Env documentation for details.

Requirements

  • Bun >= 1.0 (default runtime)
  • Node.js >= 22 (when using --node)
  • TypeScript