Skip to main content
Version: 0.60.1

Quickstart

Install

Homebrew

brew install magnusopera/tap/fscript

From source

git clone https://github.com/MagnusOpera/FScript.git
cd FScript
make build

Your first script

Create hello.fss:

let name = "FScript"
print $"Hello, {name}!"

Run it:

fscript hello.fss

Run from repository source

dotnet run --project src/FScript -- hello.fss

REPL

Start an interactive session:

fscript

Script arguments

You can pass arguments after --:

fscript hello.fss -- alice bob

Inside scripts, arguments are available via Env.Arguments.

For day-to-day scripting, install the official VS Code extension from:

It provides diagnostics, completion, hover, go-to-definition, references, rename, semantic tokens, and inlay hints.

Full setup guide: Editor Setup (VS Code).