Skip to main content
The 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:
Run it with:
Common flags (see forst --help):

forst generate

Emit TypeScript declarations and client stubs from Forst sources:
Uses the same file discovery rules as 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:
See Dev server.

forst lsp

Start the language server (JSON-RPC over HTTP on POST /):
Used by the VS Code extension. This is HTTP LSP rather than stdio. Other editors need a similar bridge.

forst fmt

Format .ft sources:

forst test

Run Forst tests (discovery and emit bridge):

forst dump

Debug compiler phases (lexer, parser, typechecker, transformer):
Useful when reporting compiler bugs.

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:
Prints semver, commit, and build date.

npm wrapper

When installed via @forst/cli:
Set FORST_BINARY to skip download in CI.

Quickstart

First commands in context.

Editor workflow

LSP integration in VS Code.