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.--node: Use Node.js (with tsx watch) instead of Bun--repl: Enable REPL endpoint fororion repl(see below)--shell: Opens a shell in Chrome developer tools--clean: Build the TypeScript project from scratch
| Runtime | Command executed |
|---|---|
| Bun (default) | bun --watch ./app/index.ts |
Node (--node) | tsx watch ./app/index.ts |
orion prod
Starts an Orionjs application in production mode.--node: Use Node.js instead of Bun--path [path]: Specify a pre-compiled build directory (Node.js only)
| Runtime | Command executed |
|---|---|
| Bun (default) | bun ./app/index.ts (runs TypeScript directly) |
Node (--node) | Builds with esbuild, then runs node --import=tsx ./build/index.js |
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. Requiresorion dev --repl to be running.
-e, --expression <expr>: (Required) The expression to evaluate--port <port>: Port of the dev server (default: auto-detect from.orion/port)
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:
Requirements
- Bun >= 1.0 (default runtime)
- Node.js >= 22 (when using
--nodeflag, also requirestsx) - TypeScript