CLI
Orizon includes a command-line tool to quickly set up new projects or add Orizon to existing React + Vite apps.
Installation
The CLI ships with the orizon package. No separate install needed.
What It Does
The init command is an interactive setup wizard that:
- Detects your project — finds your
package.jsonand Vite config - Scaffolds if needed — creates a new React + Vite + TypeScript project if no project exists
- Installs Tailwind CSS — adds
tailwindcssand@tailwindcss/vite - Installs Form deps — adds
react-hook-form,@hookform/resolvers, andzod - Configures Vite — adds the Tailwind CSS plugin to your Vite config
- Sets up CSS — adds required imports to your stylesheet
- Links stylesheet — adds the CSS link to
index.html
Commands
init
Set up Orizon in your React + Vite project.
In an existing Vite project:
In an empty directory (scaffolds a new project):
--version
Show the installed version.
--help
Show available commands and options.
Package Manager Detection
The CLI auto-detects your package manager based on lock files:
What Gets Installed
Required dependencies
Optional (Form) dependencies
These are needed for the Form, Form.Item, Form.useForm, and Form.List components.
CSS Configuration
The CLI adds these three lines to the top of your main CSS file:
@import "tailwindcss"— loads Tailwind CSS v4@import "orizon/preset.css"— loads Orizon's design tokens (colors, radii, shadows)@source— tells Tailwind to scan Orizon's component classes for tree-shaking