npm publish [tarball|folder]
Publish a package
Arguments
Name | Description |
---|---|
tarball|folder | A url or file path to a gzipped tar archive containing a single folder with a package.json file inside | A folder containing a package.json file |
Options
Name | Description |
---|---|
--tag <tag> | Registers the published package with the given tag |
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |
--access <arg> | Sets scoped package to be publicly viewable if set to 'public' |
--dry-run | Indicates that you don't want npm to make any changes and that it should only report what it would have done |
--otp <otp> | One-time password from a two-factor authenticator |