CLI Commands
The Strata CLI provides tools for project initialization, compilation, and server management.
Command Overview
| Command | Purpose |
|---|---|
| strata init | Initialize a new Strata project |
| strata build | Compile Strata files (supports --watch) |
| strata serve | Start a development or production server |
| strata check | Perform semantic analysis without code generation |
| strata run | Compile and execute a program immediately |
| strata watch | Watch files and auto-recompile on changes |
| strata fmt | Format source code according to style rules |
| strata clean | Remove build artifacts |
Global Options
These options can be used with any command:
| Option | Description |
|---|---|
-v, --version | Display Strata version |
-V, --verbose | Show detailed output |
-h, --help | Show help for a command |
Configuration
Strata projects use a .strata.json configuration file for project settings and formatting options. CLI flags always override configuration file settings.
See: Configuration Guide for complete documentation.