CmdID

CmdID / Commands

npm-publish

Publish a package to the npm registry. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Publish the current package to the default npm registry

npm publishIdentify

Publish a package from a specific directory

npm publish path/to/package_directoryIdentify

Publish a scoped package with public access

npm publish --access publicIdentify

Publish a scoped package with restricted (private) access

npm publish --access restrictedIdentify

Publish a package to a custom registry

npm publish --registry https://registry.npmjs.org/Identify

Simulate what would be published without uploading

npm publish --dry-runIdentify

Publish a package with a specific distribution tag (e.g., beta)

npm publish --tag betaIdentify

Publish with a one-time password for 2FA-enabled accounts

npm publish --otp one_time_passwordIdentify