UNPKG

1.69 kBMarkdownView Raw
1# `@lerna/create`
2
3> Create a new lerna-managed package
4
5Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.
6
7## Usage
8
9```
10lerna create <name> [loc]
11
12Create a new lerna-managed package
13
14Positionals:
15 name The package name (including scope), which must be locally unique _and_
16 publicly available [string] [required]
17 loc A custom package location, defaulting to the first configured package
18 location [string]
19
20Command Options:
21 --access When using a scope, set publishConfig.access value
22 [choices: "public", "restricted"] [default: public]
23 --bin Package has an executable. Customize with --bin
24 <executableName> [default: <name>]
25 --description Package description [string]
26 --dependencies A list of package dependencies [array]
27 --es-module Initialize a transpiled ES Module
28 --homepage The package homepage, defaulting to a subpath of the root
29 pkg.homepage [string]
30 --keywords A list of package keywords [array]
31 --license The desired package license (SPDX identifier) [default: ISC]
32 --private Make the new package private, never published
33 --registry Configure the package's publishConfig.registry [string]
34 --tag Configure the package's publishConfig.tag [string]
35 --yes Skip all prompts, accepting default values
36```