CLI Overview
CLI Overview
The current CLI exposes four top-level commands:
fscript checkfscript runfscript compilefscript version
The command help currently looks like this:
Usage: fscript [COMMAND]
Commands: check Typecheck and validate a source file run Run an FScript entrypoint compile Compile an FScript entrypoint to a native executable version Show version and build informationHow the commands fit together
check
: validate a program without executing it
run
: execute through the broadest current runtime path
compile
: build an executable and exercise the current native pipeline
version
: inspect build and version metadata
A practical loop
For most projects today, this is the smoothest order:
fscript check src/main.fsfscript run src/main.fsfscript compile src/main.fs ./main
That sequence matches the current maturity of the implementation: validation is strong, runtime execution is broader, and compile parity is still expanding.
Important current limitation
The docs distinguish carefully between the language design and the current implementation. In particular:
runis the most capable execution path todaycompilealready emits real executables- the fully native backend still covers a smaller slice than the long-term language design
Read Compile vs Run if you want the exact framing.
Comparison to TypeScript tooling
This CLI is intentionally smaller than a typical TypeScript toolchain:
- no separate bundler is required by the language
- no Node.js runtime is assumed by the language model
- the compiler is not primarily a JavaScript transpiler
Think of FScript more like a small native language toolchain than a JS ecosystem wrapper.