lerna

A tool for managing JavaScript projects with multiple packages

Subcommands

NameDescription
initCreate a new lerna repo or upgrade an existing repo to the current version of Lerna
bootstrapBootstrap the packages in the current Lerna repo. Installing all their dependencies and linking any cross-dependencies
importImport the package in the local path <pathToRepo> into packages/<directory-name> with commit history
publishCreate a new release of the packages that have been updated. Prompts for a new version and updates all the packages on git and npm
lsList local packages
llList local packages
laList local packages
listList local packages
changedCheck which packages have changed since the last release
runRun an npm script in each package that contains that script
linkSymlink together all Lerna packages that are dependencies of each other in the current Lerna repo
infoPrints local environment information that proves to be useful especially while submitting bug reports
versionBump version of packages changed since the last release
diffDiff all packages or a single package since the last release
execExecute an arbitrary command in each package
addAdd a dependency to matched packages
cleanRemove the node_modules directory from all packages
createCreate a new lerna-managed package