bun-publish: add page (#20540)

* bun-publish: add page

* Apply suggestion from @emmanuel-ferdman

Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Apply suggestion from @emmanuel-ferdman

Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Apply suggestion from @emmanuel-ferdman

Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* chore: example

---------

Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Harshavardhan
2026-01-05 10:56:45 +05:30
committed by GitHub
co-authored by Emmanuel Ferdman
parent 7ca9c42a4f
commit 0709a1bf78
+36
View File
@@ -0,0 +1,36 @@
# 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 publish`
- Publish 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-run`
- Publish 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}}`