{
"name": "lerna",
"description": "A tool for managing JavaScript projects with multiple packages",
"subcommands": [
{
"name": "init",
"description": "Create a new lerna repo or upgrade an existing repo to the current version of Lerna",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--npm-client"
],
"description": "The exececutable to run the script with",
"takes_arg": true,
"arg": {
"name": "client",
"suggestions": [
"npm",
"yarn",
"pnpm"
]
}
},
{
"names": [
"-i",
"--independent"
],
"description": "Use independent versioning mode"
},
{
"names": [
"--exact"
],
"description": "Set the exact version of lerna in the package.json file"
}
]
},
{
"name": "bootstrap",
"description": "Bootstrap the packages in the current Lerna repo. Installing all their dependencies and linking any cross-dependencies",
"options": [
{
"names": [
"--scope"
],
"description": "Include only packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--ignore"
],
"description": "Exclude packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--no-private"
],
"description": "Exclude private packages. They are included by default"
},
{
"names": [
"--since"
],
"description": "Only include packages that have been changed since the specified ref. If no ref is passed, it defaults to the most-recent tag",
"takes_arg": true,
"arg": {
"name": "ref"
}
},
{
"names": [
"--exclude-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependencies"
],
"description": "Include all transitive dependencies when running a command regardless of --scope, --ignore, or --since"
},
{
"names": [
"--include-merged-tags"
],
"description": "Include tags from merged branches when running a command with --since. This is only useful if you do a lot of publishing from feature branches, which is not generally recommended"
},
{
"names": [
"--npm-client"
],
"description": "The exececutable to run the script with",
"takes_arg": true,
"arg": {
"name": "client",
"suggestions": [
"npm",
"yarn",
"pnpm"
]
}
},
{
"names": [
"--hoist"
],
"description": "Install external dependencies matching glob at the repo root so they're available to all packages",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--nohoist"
],
"description": "Do not install external dependencies matching glob at the repo root. This can be used to opt out of hoisting for certain dependencies",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--strict"
],
"description": "When used in conjunction with hoist will throw an error and stop bootstrapping after emitting the version warnings. Has no effect if you aren't hoisting, or if there are no version warnings"
},
{
"names": [
"--ignore-prepublish"
],
"description": "Skip prepublish lifecycle scripts run by default in bootstrapped packages"
},
{
"names": [
"--ignore-scripts"
],
"description": "Skip any lifecycle scripts normally run (prepare, etc) in bootstrapped packages"
},
{
"names": [
"--registry"
],
"description": "Forwarded npm commands will use the specified registry for your package(s)",
"takes_arg": true,
"arg": {
"name": "url"
}
},
{
"names": [
"--use-workspaces"
],
"description": "Enables integration with Yarn Workspaces"
},
{
"names": [
"--no-ci"
],
"description": "Disable usage of `npm ci` in CI environments"
},
{
"names": [
"--force-local"
],
"description": "When passed, this flag causes the bootstrap command to always symlink local dependencies regardless of matching version range"
}
]
},
{
"name": "import",
"description": "Import the package in the local path <pathToRepo> into packages/<directory-name> with commit history",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--flatten"
],
"description": "Flatten the git history of the repository to import"
},
{
"names": [
"--dest"
],
"description": "Specify the destination directory by the directory listed in lerna.json"
},
{
"names": [
"--preserve-commit"
],
"description": "Preserve the original committer and commit date"
}
],
"args": [
{
"name": "pathToRepo",
"template": "folders"
}
]
},
{
"name": "publish",
"description": "Create a new release of the packages that have been updated. Prompts for a new version and updates all the packages on git and npm",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--npm-tag"
],
"description": "Publish to npm with the given npm dist-tag (Defaults to latest)",
"takes_arg": true,
"arg": {
"name": "tagname"
}
},
{
"names": [
"--canary",
"-c"
],
"description": "Create a canary release"
},
{
"names": [
"--skip-git"
],
"description": "Don't run any git commands"
},
{
"names": [
"--force-publish"
],
"description": "Force publish for the specified packages (comma-separated)",
"takes_arg": true,
"arg": {
"name": "packages",
"suggestions": [
"*"
]
}
}
]
},
{
"name": "ls",
"description": "List local packages",
"options": [
{
"names": [
"--json"
],
"description": "Show information as a JSON array"
},
{
"names": [
"--ndjson"
],
"description": "Show information as newline-delimited JSON"
},
{
"names": [
"-a",
"-all"
],
"description": "Show all packages (including private)"
},
{
"names": [
"-l",
"--long"
],
"description": "Show extended information"
},
{
"names": [
"-p",
"--parseable"
],
"description": "Show parseable output instead of columnified view"
},
{
"names": [
"--toposort"
],
"description": "Sort packages in topological order (dependencies before dependents) instead of lexical by directory"
},
{
"names": [
"--graph"
],
"description": "Show dependency graph as a JSON-formatted adjacency list"
}
]
},
{
"name": "ll",
"description": "List local packages",
"options": [
{
"names": [
"--json"
],
"description": "Show information as a JSON array"
},
{
"names": [
"--ndjson"
],
"description": "Show information as newline-delimited JSON"
},
{
"names": [
"-a",
"-all"
],
"description": "Show all packages (including private)"
},
{
"names": [
"-l",
"--long"
],
"description": "Show extended information"
},
{
"names": [
"-p",
"--parseable"
],
"description": "Show parseable output instead of columnified view"
},
{
"names": [
"--toposort"
],
"description": "Sort packages in topological order (dependencies before dependents) instead of lexical by directory"
},
{
"names": [
"--graph"
],
"description": "Show dependency graph as a JSON-formatted adjacency list"
}
]
},
{
"name": "la",
"description": "List local packages",
"options": [
{
"names": [
"--json"
],
"description": "Show information as a JSON array"
},
{
"names": [
"--ndjson"
],
"description": "Show information as newline-delimited JSON"
},
{
"names": [
"-a",
"-all"
],
"description": "Show all packages (including private)"
},
{
"names": [
"-l",
"--long"
],
"description": "Show extended information"
},
{
"names": [
"-p",
"--parseable"
],
"description": "Show parseable output instead of columnified view"
},
{
"names": [
"--toposort"
],
"description": "Sort packages in topological order (dependencies before dependents) instead of lexical by directory"
},
{
"names": [
"--graph"
],
"description": "Show dependency graph as a JSON-formatted adjacency list"
}
]
},
{
"name": "list",
"description": "List local packages",
"options": [
{
"names": [
"--json"
],
"description": "Show information as a JSON array"
},
{
"names": [
"--ndjson"
],
"description": "Show information as newline-delimited JSON"
},
{
"names": [
"-a",
"-all"
],
"description": "Show all packages (including private)"
},
{
"names": [
"-l",
"--long"
],
"description": "Show extended information"
},
{
"names": [
"-p",
"--parseable"
],
"description": "Show parseable output instead of columnified view"
},
{
"names": [
"--toposort"
],
"description": "Sort packages in topological order (dependencies before dependents) instead of lexical by directory"
},
{
"names": [
"--graph"
],
"description": "Show dependency graph as a JSON-formatted adjacency list"
}
]
},
{
"name": "changed",
"description": "Check which packages have changed since the last release",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
}
],
"args": [
{
"name": "package"
}
]
},
{
"name": "run",
"description": "Run an npm script in each package that contains that script",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--scope"
],
"description": "Include only packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--ignore"
],
"description": "Exclude packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--no-private"
],
"description": "Exclude private packages. They are included by default"
},
{
"names": [
"--since"
],
"description": "Only include packages that have been changed since the specified ref. If no ref is passed, it defaults to the most-recent tag",
"takes_arg": true,
"arg": {
"name": "ref"
}
},
{
"names": [
"--exclude-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependencies"
],
"description": "Include all transitive dependencies when running a command regardless of --scope, --ignore, or --since"
},
{
"names": [
"--include-merged-tags"
],
"description": "Include tags from merged branches when running a command with --since. This is only useful if you do a lot of publishing from feature branches, which is not generally recommended"
},
{
"names": [
"--stream"
],
"description": "Stream output from child processes immediately, prefixed with the originating package name. This allows output from different packages to be interleaved"
},
{
"names": [
"--parallel"
],
"description": "Similar to --stream, but completely disregards concurrency and topological sorting, running a given command or script immediately in all matching packages with prefixed streaming output"
},
{
"names": [
"--no-bail"
],
"description": "By default, lerna run will exit with an error if any script run returns a non-zero exit code. Pass --no-bail to disable this behavior, running the script in all packages that contain it regardless of "
},
{
"names": [
"--no-prefix"
],
"description": "Disable package name prefixing when output is streaming (--stream or --parallel). This option can be useful when piping results to other processes, such as editor plugins"
},
{
"names": [
"--profile"
],
"description": "Profiles the script executions and produces a performance profile which can be analyzed using DevTools"
},
{
"names": [
"--profile-location"
],
"description": "You can provide a custom location for the performance profile output. The path provided will be resolved relative to the current working directory",
"takes_arg": true,
"arg": {
"name": "location",
"template": "folders"
}
}
],
"args": [
{
"name": "script",
"description": "Name of the npm script to run"
}
]
},
{
"name": "link",
"description": "Symlink together all Lerna packages that are dependencies of each other in the current Lerna repo",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--force-local"
],
"description": "When passed, this flag causes the link command to always symlink local dependencies regardless of matching version range"
}
]
},
{
"name": "info",
"description": "Prints local environment information that proves to be useful especially while submitting bug reports"
},
{
"name": "version",
"description": "Bump version of packages changed since the last release",
"options": [
{
"names": [
"--allow-branch"
],
"description": "An allowlist of globs that match git branches where lerna version is enabled",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--amend"
],
"description": "Perform all changes on the current commit, instead of adding a new one"
},
{
"names": [
"--changelog-preset"
],
"description": "Change the changelog preset type"
},
{
"names": [
"--conventional-commits"
],
"description": "Use the Conventional Commits Specification to determine the version bump and generate CHANGELOG.md files"
},
{
"names": [
"--conventional-graduate"
],
"description": "Graduate the specified packages (comma-separated) or all packages using *"
},
{
"names": [
"--conventional-prerelease"
],
"description": "Release with prerelease versions the specified packages (comma-separated) or all packages using *"
},
{
"names": [
"--create-release"
],
"description": "Create an official release based on the changes packages",
"takes_arg": true,
"arg": {
"name": "type",
"suggestions": [
"github",
"gitlab"
]
}
},
{
"names": [
"--exact"
],
"description": "Specify updated dependencies in updated packages exactly"
},
{
"names": [
"--force-publish"
],
"description": "Force publish the specified packages (comma-separated) or all packages using *"
},
{
"names": [
"--git-remote"
],
"description": "Push the git changes to the specified remote instead of origin",
"takes_arg": true,
"arg": {
"name": "remote"
}
},
{
"names": [
"--ignore-changes"
],
"description": "Ignore changes in files matched by glob(s) when detecting changed packages",
"takes_arg": true,
"arg": {
"name": "glob",
"template": "folders"
}
},
{
"names": [
"--ignore-scripts"
],
"description": "Disable running lifecycle scripts during lerna version"
},
{
"names": [
"--include-merged-tags"
],
"description": "Include tags from merged branches when detecting changed packages"
},
{
"names": [
"-m",
"--message"
],
"description": "Use the provided message when committing the version updates for publication",
"takes_arg": true,
"arg": {
"name": "msg"
}
},
{
"names": [
"--no-changelog"
],
"description": "When using conventional-commits, do not generate any CHANGELOG.md files"
},
{
"names": [
"--no-commit-hooks"
],
"description": "Disable running git commit hooks"
},
{
"names": [
"--no-git-tag-version"
],
"description": "Don't commit changes to package.json files and don't tag the release"
},
{
"names": [
"--no-granular-pathspec"
]
},
{
"names": [
"--no-private"
],
"description": "Don't include private packages"
},
{
"names": [
"--preid"
],
"description": "Bump semver using the specified prerelease identifier",
"takes_arg": true,
"arg": {
"name": "identifier"
}
},
{
"names": [
"--sign-git-commit"
]
},
{
"names": [
"--sign-git-tag"
]
},
{
"names": [
"--force-git-tag"
]
},
{
"names": [
"--tag-version-prefix"
],
"description": "Change the custom version prefix",
"takes_arg": true,
"arg": {
"name": "prefix"
}
},
{
"names": [
"--yes"
],
"description": "Skip all confirmation prompts"
}
],
"args": [
{
"name": "version",
"suggestions": [
"major",
"minor",
"patch",
"premajor",
"preminor",
"prepatch",
"prerelease"
]
}
]
},
{
"name": "diff",
"description": "Diff all packages or a single package since the last release",
"args": [
{
"name": "package"
}
]
},
{
"name": "exec",
"description": "Execute an arbitrary command in each package",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--scope"
],
"description": "Include only packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--ignore"
],
"description": "Exclude packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--no-private"
],
"description": "Exclude private packages. They are included by default"
},
{
"names": [
"--since"
],
"description": "Only include packages that have been changed since the specified ref. If no ref is passed, it defaults to the most-recent tag",
"takes_arg": true,
"arg": {
"name": "ref"
}
},
{
"names": [
"--exclude-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependencies"
],
"description": "Include all transitive dependencies when running a command regardless of --scope, --ignore, or --since"
},
{
"names": [
"--include-merged-tags"
],
"description": "Include tags from merged branches when running a command with --since. This is only useful if you do a lot of publishing from feature branches, which is not generally recommended"
},
{
"names": [
"--stream"
],
"description": "Stream output from child processes immediately, prefixed with the originating package name. This allows output from different packages to be interleaved"
},
{
"names": [
"--parallel"
],
"description": "Similar to --stream, but completely disregards concurrency and topological sorting, running a given command or script immediately in all matching packages with prefixed streaming output"
},
{
"names": [
"--no-bail"
],
"description": "By default, lerna run will exit with an error if any script run returns a non-zero exit code. Pass --no-bail to disable this behavior, running the script in all packages that contain it regardless of "
},
{
"names": [
"--no-prefix"
],
"description": "Disable package name prefixing when output is streaming (--stream or --parallel). This option can be useful when piping results to other processes, such as editor plugins"
},
{
"names": [
"--profile"
],
"description": "Profiles the script executions and produces a performance profile which can be analyzed using DevTools"
},
{
"names": [
"--profile-location"
],
"description": "You can provide a custom location for the performance profile output. The path provided will be resolved relative to the current working directory",
"takes_arg": true,
"arg": {
"name": "location",
"template": "folders"
}
}
],
"args": [
{
"name": "command"
}
]
},
{
"name": "add",
"description": "Add a dependency to matched packages",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--scope"
],
"description": "Include only packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--ignore"
],
"description": "Exclude packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--no-private"
],
"description": "Exclude private packages. They are included by default"
},
{
"names": [
"--since"
],
"description": "Only include packages that have been changed since the specified ref. If no ref is passed, it defaults to the most-recent tag",
"takes_arg": true,
"arg": {
"name": "ref"
}
},
{
"names": [
"--exclude-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependencies"
],
"description": "Include all transitive dependencies when running a command regardless of --scope, --ignore, or --since"
},
{
"names": [
"--include-merged-tags"
],
"description": "Include tags from merged branches when running a command with --since. This is only useful if you do a lot of publishing from feature branches, which is not generally recommended"
},
{
"names": [
"--dev"
],
"description": "Add the new package to devDependencies instead of dependencies"
},
{
"names": [
"--exact"
],
"description": "Add the new package with an exact version"
},
{
"names": [
"--peer"
],
"description": "Add the new package to peerDependencies instead of dependencies"
},
{
"names": [
"--registry"
],
"description": "Use a custom registry to install the targeted package",
"takes_arg": true,
"arg": {
"name": "registry"
}
},
{
"names": [
"--no-bootstrap"
],
"description": "Skip the chained lerna bootstrap"
}
]
},
{
"name": "clean",
"description": "Remove the node_modules directory from all packages",
"options": [
{
"names": [
"--concurrency"
],
"description": "How many threads to use when Lerna parallelizes the tasks (defaults to count of logical CPU cores)"
},
{
"names": [
"--loglevel"
],
"description": "What level of logs to report. On failure, all logs are written to lerna-debug.log in the current working directory",
"takes_arg": true,
"arg": {
"name": "loglevel",
"suggestions": [
"silent",
"error",
"warn",
"success",
"info",
"verbose",
"silly"
]
}
},
{
"names": [
"--max-buffer"
],
"description": "Set a max buffer length for each underlying process call",
"takes_arg": true,
"arg": {
"name": "bytes"
}
},
{
"names": [
"--no-progress"
],
"description": "Disable progress bars. This is always the case in a CI environment"
},
{
"names": [
"--no-sort"
],
"description": "The --no-sort option disables sorting, instead executing tasks in an arbitrary order with maximum concurrency"
},
{
"names": [
"--reject-cycles"
],
"description": "Fail immediately if a cycle is found (in bootstrap, exec, publish or run)"
},
{
"names": [
"-h",
"--help"
],
"description": "Show help"
},
{
"names": [
"-v",
"--version"
],
"description": "Show version number"
},
{
"names": [
"--scope"
],
"description": "Include only packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--ignore"
],
"description": "Exclude packages with names matching the given glob",
"takes_arg": true,
"arg": {
"name": "glob"
}
},
{
"names": [
"--no-private"
],
"description": "Exclude private packages. They are included by default"
},
{
"names": [
"--since"
],
"description": "Only include packages that have been changed since the specified ref. If no ref is passed, it defaults to the most-recent tag",
"takes_arg": true,
"arg": {
"name": "ref"
}
},
{
"names": [
"--exclude-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependents"
],
"description": "Exclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm"
},
{
"names": [
"--include-dependencies"
],
"description": "Include all transitive dependencies when running a command regardless of --scope, --ignore, or --since"
},
{
"names": [
"--include-merged-tags"
],
"description": "Include tags from merged branches when running a command with --since. This is only useful if you do a lot of publishing from feature branches, which is not generally recommended"
},
{
"names": [
"--yes"
],
"description": "Skip all confirmation prompts"
}
]
},
{
"name": "create",
"description": "Create a new lerna-managed package",
"options": [
{
"names": [
"--access"
],
"description": "Set the scope of the package",
"takes_arg": true,
"arg": {
"name": "scope",
"suggestions": [
"public",
"restricted"
]
}
},
{
"names": [
"--bin"
],
"description": "Package has an executable",
"takes_arg": true,
"arg": {
"name": "executableName"
}
},
{
"names": [
"--description"
],
"description": "Package description"
},
{
"names": [
"--dependencies"
],
"description": "A list of package dependencies",
"takes_arg": true,
"arg": {
"name": "dependencies",
"is_variadic": true
}
},
{
"names": [
"--es-module"
],
"description": "Initialize a transpiled ES Module"
},
{
"names": [
"--homepage"
],
"description": "The package homepage, defaulting to a subpath of the root pkg.homepage"
},
{
"names": [
"--keywords"
],
"description": "A list of package keywords",
"takes_arg": true,
"arg": {
"name": "keywords",
"is_variadic": true
}
},
{
"names": [
"--license"
],
"description": "The desired package license (SPDX identifier)"
},
{
"names": [
"--private"
],
"description": "Make the new package private, never published"
},
{
"names": [
"--registry"
],
"description": "Configure the package's publishConfig.registry"
},
{
"names": [
"--tag"
],
"description": "Configure the package's publishConfig.tag"
},
{
"names": [
"--yes"
],
"description": "Skip all prompts, accepting default values"
}
],
"args": [
{
"name": "name"
},
{
"name": "loc"
}
]
}
]
}