Examples (8)
Publish the current package to the npm registry
Publish a package from a specific directory
bun publish path/to/package_directoryPublish a scoped package with specific access level
bun publish --access public|restrictedPublish a package to a custom registry
bun publish --registry registryRun 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_namePublish with a one-time password for 2FA-enabled accounts
bun publish --otp one_time_passwordPublish using a specific authentication type
bun publish --auth-type web|legacymade by @shridhargupta | data from tldr-pages