mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
31 lines
585 B
Plaintext
31 lines
585 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# bun link
|
|
|
|
> Register a local package as linkable or link a registered package into a project.
|
|
> See also: `bun unlink`.
|
|
> More information: <https://bun.com/docs/pm/cli/link>.
|
|
|
|
- Link the current package globally:
|
|
|
|
`bun link`
|
|
|
|
- Link a package locally to a project:
|
|
|
|
`bun link {{package_name}}`
|
|
|
|
- Link a package in a specific directory:
|
|
|
|
`bun link --cwd {{path/to/package}}`
|
|
|
|
- Perform a dry run without actually linking:
|
|
|
|
`bun link --dry-run`
|
|
|
|
- Display help:
|
|
|
|
`bun link {{[-h|--help]}}`
|