WorkLensDocs
    Studio
    guide

    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.

    Last updated 2026-09-14 · Markdown

    Summary

    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.

    Node.js 18+
    A checkoutno build step
    worklens versionprints 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

    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.