Skip to content

Quickstart

This guide takes you from zero to a compiled native binary. You need a terminal and Node 20 or later.

Go to pure.dev and create an account. Email verification is required before you can create API keys.

In the dashboard, open API Keys and click New key. Give it a name (e.g. dev). Copy the key — it is shown once.

The CLI is distributed via apt, not npm — see Installation for the full setup. Quick version:

Terminal window
curl -fsSL https://apt.pure.dev/install.sh | sudo sh

Verify the install:

Terminal window
pure --version
Terminal window
pure login

This verifies your key against api.pure.dev and saves it to ~/.config/pure/credentials (mode 0600). pure build looks for a key here (or in $PURE_API_KEY) — it does not prompt interactively.

Create a file hello.ts:

console.log('hello from a native binary');
Terminal window
pure build hello.ts --release

The CLI writes progress to stderr and the compile log to stdout:

Uploading 2 KiB and compiling hello.ts…
Wrote ./hello (3 work units)

By default the binary is written to ./hello — the entry filename without its extension, in the current directory. Use -o/--out to write it elsewhere.

Terminal window
./hello
# hello from a native binary

The binary has no runtime dependencies. Copy it to any compatible Linux or macOS machine and run it directly.