mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 17:46:33 +00:00
42 lines
929 B
Plaintext
42 lines
929 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|