lerna bootstrap

Bootstrap the packages in the current Lerna repo. Installing all their dependencies and linking any cross-dependencies

Options

NameDescription
--scope <glob>Include only packages with names matching the given glob
--ignore <glob>Exclude packages with names matching the given glob
--no-privateExclude private packages. They are included by default
--since [ref]Only include packages that have been changed since the specified ref. If no ref is passed, it defaults to the most-recent tag
--exclude-dependentsExclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm
--include-dependentsExclude all transitive dependents when running a command with --since, overriding the default 'changed' algorithm
--include-dependenciesInclude all transitive dependencies when running a command regardless of --scope, --ignore, or --since
--include-merged-tagsInclude 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
--npm-client <client>The exececutable to run the script with
--hoist <glob>Install external dependencies matching glob at the repo root so they're available to all packages
--nohoist <glob>Do not install external dependencies matching glob at the repo root. This can be used to opt out of hoisting for certain dependencies
--strictWhen 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
--ignore-prepublishSkip prepublish lifecycle scripts run by default in bootstrapped packages
--ignore-scriptsSkip any lifecycle scripts normally run (prepare, etc) in bootstrapped packages
--registry <url>Forwarded npm commands will use the specified registry for your package(s)
--use-workspacesEnables integration with Yarn Workspaces
--no-ciDisable usage of `npm ci` in CI environments
--force-localWhen passed, this flag causes the bootstrap command to always symlink local dependencies regardless of matching version range