npm publish [tarball|folder]

Publish a package

Arguments

NameDescription
tarball|folderA 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

NameDescription
--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, --workspacesEnable 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-runIndicates 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