mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 09:45:39 +00:00
34 lines
565 B
Plaintext
34 lines
565 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# bun link
|
|
|
|
> Bun command to register the current package as a linkable package.
|
|
> More information: <https://bun.com/docs/pm/cli/link>.
|
|
|
|
- Link the package globally:
|
|
|
|
`bun link`
|
|
|
|
- Link a package locally to a project:
|
|
|
|
`bun link {{package_name}}`
|
|
|
|
- Link directly from a local path:
|
|
|
|
`bun link {{path/to/package}}`
|
|
|
|
- Unlink a package:
|
|
|
|
`bun unlink {{package_name}}`
|
|
|
|
- Unlink a global package:
|
|
|
|
`bun unlink --global {{package_name}}`
|
|
|
|
- Display help:
|
|
|
|
`bun link --help`
|