Skip to content

CLI Commands

The Strata CLI provides tools for project initialization, compilation, and server management.

Command Overview

CommandPurpose
strata initInitialize a new Strata project
strata buildCompile Strata files (supports --watch)
strata serveStart a development or production server
strata checkPerform semantic analysis without code generation
strata runCompile and execute a program immediately
strata watchWatch files and auto-recompile on changes
strata fmtFormat source code according to style rules
strata cleanRemove build artifacts

Global Options

These options can be used with any command:

OptionDescription
-v, --versionDisplay Strata version
-V, --verboseShow detailed output
-h, --helpShow 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.

Branding · License
Released under the MIT License.