snippetbashTip
bun publish — Publish a package to the npm registry. More information: <https://bun.com/docs/pm/cli/publish>.
Viewed 0 times
theregistrycommandnpmbun publishclipublishpackage
Problem
How to use the
bun publish command: Publish a package to the npm registry. More information: <https://bun.com/docs/pm/cli/publish>.Solution
bun publish — Publish a package to the npm registry. More information: <https://bun.com/docs/pm/cli/publish>.Publish the current package to the npm registry:
bun publishPublish a package from a specific directory:
bun publish {{path/to/package_directory}}Publish a scoped package with specific access level:
bun publish --access {{public|restricted}}Publish a package to a custom registry:
bun publish --registry {{registry}}Run a dry run to see what would be published without uploading:
bun publish --dry-runPublish a package with a specific distribution tag:
bun publish --tag {{tag_name}}Publish with a one-time password for 2FA-enabled accounts:
bun publish --otp {{one_time_password}}Publish using a specific authentication type:
bun publish --auth-type {{web|legacy}}Code Snippets
Publish the current package to the npm registry
bun publishPublish a package from a specific directory
bun publish {{path/to/package_directory}}Publish a scoped package with specific access level
bun publish --access {{public|restricted}}Publish a package to a custom registry
bun publish --registry {{registry}}Run a dry run to see what would be published without uploading
bun publish --dry-runContext
tldr-pages: common/bun publish
Revisions (0)
No revisions yet.