# Installation

> How to run the WorkLens CLI today — from a checkout, with Node.js 18 or newer and no build step — and what changes when it is published.

Section: CLI · Type: guide · Last updated: 2026-09-14

The CLI lives in packages/sdk-node and ships its engine as WebAssembly, so there is nothing to compile; it needs Node.js 18 or newer.

## The picture

Node.js 18+ → A checkout (no build step) → worklens version (prints the engine version)

## How it works

1. Check Node.js: node --version should print 18 or newer.
2. From the repository root, run node packages/sdk-node/bin/worklens.js version. It prints the engine version and proves the WebAssembly loaded.
3. Optionally run the smoke test: cd packages/sdk-node && npm run smoke.
4. Run a recipe: node packages/sdk-node/bin/worklens.js bundle examples/homepage-demo.wl.json --seed 42 --out-dir my-run.

## First run

```bash
node --version                                   # 18 or newer
node packages/sdk-node/bin/worklens.js version   # prints the engine version
```

No install step beyond a checkout. The engine is a bundled .wasm file next to the script.

> **Not on npm yet** — npx worklens will not find a package today. Use the path form above; this page changes the day it is published.

## Common questions

**Why is it not on npm?**

Publication is pending. Everything here works from a checkout today, and the commands are identical once it is published — worklens in place of the path.

**Windows, macOS, Linux?**

All three: it is Node.js plus WebAssembly, with no native module. The website itself is developed on Windows.

## Related

- [Generate](https://theworklens.com/docs/cli/generate): worklens generate — recipe → data. Read from the CLI’s own header, with every option it accepts.
- [Configuration](https://theworklens.com/docs/cli/configuration): Every option the generate, prove and bundle commands accept, and what each one changes about a run. There is no config file.
- [Runtimes](https://theworklens.com/docs/sdk/runtimes): Which languages and runtimes exist today: Node.js, the browser via the studio, and the MCP server that wraps the same module.

_← Previous: [CLI](https://theworklens.com/docs/cli) · Next: [Generate](https://theworklens.com/docs/cli/generate) →_

_Canonical: https://theworklens.com/docs/cli/installation · This copy: https://theworklens.com/docs/cli/installation.md_
