# Packs on the command line

> Loading a locale or domain pack into a CLI run with --pack, and why CI must pass it on every run.

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

load a pack before generating; repeatable. Packs are process-local, so CI must pass them on every run — commit the pack next to the recipe and repeat the flag. Nothing ships with WorkLens, so a recipe that needs a pack needs the pack file on the command; the run fails with the missing token otherwise. Keep the pack next to the recipe, commit both, and repeat the flag in CI.

## The picture

recipe.wl.json (requires tokens) → --pack file.json (provides tokens) → worklens generate (resolves) → Data

## The option

- --pack FILE — load a pack before generating; repeatable. Packs are process-local, so CI must pass them on every run — commit the pack next to the recipe and repeat the flag.

## A CI-shaped invocation

```bash
node packages/sdk-node/bin/worklens.js bundle recipe.wl.json --seed 42 --format json --pack ./packs/my-locale.json --out-dir run
```

Commit the pack next to the recipe and repeat the flag on every run — packs do not persist between processes.

## Bundled without a flag

- Nothing — no locale pack and no domain recipe ships; pass each with --pack

## Common questions

**The run says a pack is missing — what now?**

The message names the token and the column that needs it. No pack ships, so draft or reuse a pack that provides it — the MCP server’s validate_recipe and plan_packs tell an agent exactly what to write — and pass it with --pack.

## Related

- [Locale packs](https://theworklens.com/docs/packs/locale): Names, companies, streets, suburbs and bank codes for a region come from a locale pack you register. None ships with WorkLens; examples live in the repository.
- [Domain recipes](https://theworklens.com/docs/packs/domain): No domain recipe ships with WorkLens. Your AI assistant drafts one for your business through MCP; worked examples live in the repository.
- [Custom packs](https://theworklens.com/docs/packs/custom): Writing a pack of your own — the manifest every pack shares, provenance, tokens, and the agent loop that drafts one when a run is missing it.
- [Generate](https://theworklens.com/docs/cli/generate): worklens generate — recipe → data. Read from the CLI’s own header, with every option it accepts.

_← Previous: [Prove & bundle](https://theworklens.com/docs/cli/prove) · Next: [Configuration](https://theworklens.com/docs/cli/configuration) →_

_The option text comes from the CLI header; nothing is bundled since phase 69. Source: packages/sdk-node/bin/worklens.js + the SDK’s pack registry._

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