forst CLI transpiles .ft sources, runs programs, generates TypeScript output, and starts development services. Install via @forst/cli or a native binary.
Default compile and run
With no subcommand,forst compiles a single .ft file. Given hello.ft:
- Forst
- Generated Go
forst --help):
forst generate
Emit TypeScript declarations and client stubs from Forst sources:
forst dev. Output typically lands in generated/ and client/ relative to the target.
forst dev
Start the HTTP development server for function discovery, invocation, and types:
forst lsp
Start the language server (JSON-RPC over HTTP on POST /):
forst fmt
Format .ft sources:
forst test
Run Forst tests (discovery and emit bridge):
forst dump
Debug compiler phases (lexer, parser, typechecker, transformer):
forst clean
Remove compiler-generated artifacts under .forst/ (run sandboxes, test emit dirs, executor temp modules, nodert sockets, invoke ready markers). User config such as .forst-gomod/ is not removed.
forst version
Print compiler version info:
npm wrapper
When installed via@forst/cli:
FORST_BINARY to skip download in CI.
Related
Quickstart
First commands in context.
Editor workflow
LSP integration in VS Code.