Installation
The CLI is part of the@orion-js/core
package.
Available Commands
Orionjs CLI provides essential commands to help you with your development workflow.orion dev
Runs your Orionjs application in development mode with hot reloading.--shell
: Opens a shell in Chrome developer tools--clean
: Build the typescript project from scratch
- Compile your TypeScript code
- Watch for changes in your files
- Automatically restart the server when changes are detected
orion prod
Starts an Orionjs application as a production Node.js application.Environment Variables Integration
Orionjs CLI automatically integrates with@orion-js/env
. To use encrypted environment variables, set these two variables:
Requirements
- Node.js >=14.0.0
- TypeScript
Environment Variables
The Orionjs CLI automatically loads environment variables from a.env
file in your project root, making it easy to configure your application for different environments.