Quickstart
This guide takes you from zero to a compiled native binary. You need a terminal and Node 20 or later.
1. Sign up
Section titled “1. Sign up”Go to pure.dev and create an account. Email verification is required before you can create API keys.
2. Create an API key
Section titled “2. Create an API key”In the dashboard, open API Keys and click New key. Give it a name (e.g. dev). Copy the key — it is shown once.
3. Install the CLI
Section titled “3. Install the CLI”The CLI is distributed via apt, not npm — see Installation for the full setup. Quick version:
curl -fsSL https://apt.pure.dev/install.sh | sudo shVerify the install:
pure --version4. Log in
Section titled “4. Log in”pure loginThis 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.
5. Write a program
Section titled “5. Write a program”Create a file hello.ts:
console.log('hello from a native binary');6. Compile
Section titled “6. Compile”pure build hello.ts --releaseThe 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.
7. Run it
Section titled “7. Run it”./hello# hello from a native binaryThe binary has no runtime dependencies. Copy it to any compatible Linux or macOS machine and run it directly.
Next steps
Section titled “Next steps”- CLI → Build — full flag reference for
pure build - Guide → API keys — rotate, scope, and revoke keys
- Language → Supported features — what TypeScript and JavaScript features are available
- Compile API → Protocol — drive compilation programmatically over WebSocket