# Feature catalog — lerna/lerna

> Canonical page: https://codevetter.com/unpack/lerna/feature-catalog

# Feature catalog — lerna/lerna

Scanned commit ce3e38f2889b26573f1b38cfb487546903292158 (2026-10-02). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

The registered CLI covers workspace setup, package inspection, task execution, cleanup, importing history, and releases. Shared filtering supports package scopes, exclusions, changed-package selection, and dependency expansion where commands expose those options. Versioning and publishing have distinct modes and side effects. Legacy package-management names remain registered only to explain their removal.
- init generates lerna.json, adds Lerna as a development dependency, supplies workspace configuration for a new repository, and supports dry-run previews; create scaffolds package files and optional CLI files. — [libs/commands/init/src/index.ts#L85-122](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/init/src/index.ts#L85-L122) [libs/commands/init/src/index.ts#L136-210](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/init/src/index.ts#L136-L210) [libs/commands/create/src/index.ts#L183-206](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/create/src/index.ts#L183-L206)
- list filters and formats packages; changed collects release candidates and returns exit code 1 when none exist; diff invokes Git for a named package or package parent directories; info reports environment details. — [libs/commands/list/src/index.ts#L21-40](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/list/src/index.ts#L21-L40) [libs/commands/changed/src/index.ts#L39-61](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/changed/src/index.ts#L39-L61) [libs/commands/diff/src/index.ts#L38-57](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/diff/src/index.ts#L38-L57) [libs/commands/info/src/index.ts#L11-20](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/info/src/index.ts#L11-L20)
- run accepts comma-separated targets and forwards arguments after --; Nx is the default runner, while useNx=false selects parallel, topological, or lexical legacy execution and rejects multiple targets. — [libs/commands/run/src/command.ts#L9-29](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/run/src/command.ts#L9-L29) [libs/commands/run/src/index.ts#L74-87](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/run/src/index.ts#L74-L87) [libs/commands/run/src/index.ts#L132-140](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/run/src/index.ts#L132-L140)
- exec runs shell commands in selected package directories with LERNA_PACKAGE_NAME and LERNA_ROOT_PATH; watch delegates change-triggered execution to Nx with LERNA_PACKAGE_NAME and LERNA_FILE_CHANGES. — [libs/commands/exec/src/index.ts#L122-147](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/exec/src/index.ts#L122-L147) [packages/lerna/src/commands/watch/index.ts#L49-58](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/packages/lerna/src/commands/watch/index.ts#L49-L58)
- clean removes selected packages' node_modules directories after confirmation or --yes; import reads an external repository and sequentially applies rewritten commit patches with git am. — [libs/commands/clean/src/index.ts#L29-60](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/clean/src/index.ts#L29-L60) [libs/commands/import/src/index.ts#L47-108](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/import/src/index.ts#L47-L108) [libs/commands/import/src/index.ts#L239-283](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/import/src/index.ts#L239-L283)
- version supports fixed and independent versions, explicit semver or increment keywords, interactive selection, conventional-commit recommendations, changelogs, Git tags, pushes, and optional hosted releases. — [libs/commands/version/src/index.ts#L420-474](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/version/src/index.ts#L420-L474) [libs/commands/version/src/index.ts#L709-774](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/version/src/index.ts#L709-L774) [libs/commands/version/src/index.ts#L370-405](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/version/src/index.ts#L370-L405)
- publish selects from-git, from-package, canary, or composed versioning; it supports custom publish directories/assets, private-package inclusion, temporary dist-tags, throttling, and a JSON summary. — [libs/commands/publish/src/index.ts#L179-186](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/publish/src/index.ts#L179-L186) [libs/commands/publish/src/index.ts#L284-332](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/publish/src/index.ts#L284-L332) [libs/commands/publish/src/index.ts#L403-429](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/publish/src/index.ts#L403-L429) [libs/commands/publish/src/index.ts#L982-1002](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/libs/commands/publish/src/index.ts#L982-L1002)
- add-caching collects script dependency/cache/output answers and writes nx.json; repair passes registered Lerna migrations to Nx; add, bootstrap, and link terminate with removal guidance. — [packages/lerna/src/commands/add-caching/index.ts#L68-114](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/packages/lerna/src/commands/add-caching/index.ts#L68-L114) [packages/lerna/src/commands/add-caching/index.ts#L130-160](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/packages/lerna/src/commands/add-caching/index.ts#L130-L160) [packages/lerna/src/commands/repair/index.ts#L23-35](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/packages/lerna/src/commands/repair/index.ts#L23-L35) [packages/lerna/src/index.ts#L61-89](https://github.com/lerna/lerna/blob/ce3e38f2889b26573f1b38cfb487546903292158/packages/lerna/src/index.ts#L61-L89)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
