Something went wrong

Thank you for being patient! We're working hard on resolving the issue

Installation - Lona Docs Log in

Installation

@tento-lona/cli/rows-fixtures is a Deno-only package that lives in the mono repo under tento/tento-lona-js/cli/rows-fixtures/. There's no separate npm install — clone the repo and invoke the entry script directly.

Prerequisites

  • Deno 1.40+
  • A clone of the mono repo (the CLI imports @tento-lona/sheets via the workspace import map)

Invocation

The entry script is tento/tento-lona-js/cli/rows-fixtures/src/lona-rows.deno.ts:

deno run --allow-read [--allow-write] \
  --unstable-sloppy-imports \
  tento/tento-lona-js/cli/rows-fixtures/src/lona-rows.deno.ts <subcommand> [args]

Permission flags:

  • --allow-read — required for every subcommand (reads fixtures, the workspace import map)
  • --allow-write — required for watch --save-on-exit and ops --save-on-exit

Optional alias

For a shorter command line, alias the entry script:

alias lona-rows='deno run --allow-read --allow-write \
  --unstable-sloppy-imports \
  /path/to/mono/tento/tento-lona-js/cli/rows-fixtures/src/lona-rows.deno.ts'

lona-rows hydrate ./fixtures/sample.sheet.json

Fixture paths

All subcommand path arguments are resolved relative to the current working directory, not the script location. Examples in this doc set assume cwd is the repo root, so paths look like tento/tento-lona-js/sheets/tests/demo/formula-from-empty.ops.json.

For a fixture in your own project tree, pass an absolute path or cd to its directory first.

Verifying installation

deno run --allow-read --unstable-sloppy-imports \
  tento/tento-lona-js/cli/rows-fixtures/src/lona-rows.deno.ts \
  hydrate tento/tento-lona-js/sheets/tests.shared/sheets/formula-simple-seeded.sheet.json

Should print the formula-simple grid (Weight + Weight Plus 10 columns, 3 dated rows). If you see import errors, confirm deno.json is present in your cwd ancestor chain — the CLI needs the workspace import map to resolve @tento-lona/sheets.

See also