// install

Get the ForgeScript CLI.

One command. Requires Node.js 18+. macOS, Linux, WSL.

Install

bash
curl -fsSL https://forgelang.app/install.sh | sh

Installs to ~/.forgescript and creates a forgescript wrapper in ~/.local/bin.

Run a script

forgescript
# demo.fs
load "iris" as df

df
  |> filter(species == "setosa")
  |> select(:sepal_length, :sepal_width)
  |> head(5)
bash
forgescript run demo.fs

REPL

bash
forgescript repl

Load a CSV

load falls back to the local filesystem when the name isn't a built-in dataset.

forgescript
load "sales.csv" as s
s |> group_by(:region) |> agg(total = sum(:revenue))

Manual install

bash
curl -fsSL https://forgelang.app/forgescript.mjs -o forgescript.mjs
node forgescript.mjs run demo.fs