bun-publish
Publish packages to the npm registry
TLDR
Publish a package to npm registry
$ bun publish
Publish with a specific tag$ bun publish --tag [beta]
Publish with public access (scoped packages)$ bun publish --access public
Dry run without actually publishing$ bun publish --dry-run
SYNOPSIS
bun publish [options]
DESCRIPTION
bun publish publishes the current package to the npm registry. It reads package configuration from package.json and uploads the package tarball.
Before publishing, ensure you're logged in with bun login or have appropriate credentials configured.
PARAMETERS
--tag tag
Publish with a specific dist-tag (default: latest).--access public|restricted
Set access level for scoped packages.--dry-run
Show what would be published without actually publishing.--otp code
One-time password for 2FA.
CAVEATS
Requires authentication to the npm registry. Scoped packages (@org/name) are private by default; use --access public for public scoped packages.
SEE ALSO
bun(1), npm-publish(1)
