Files
cheatsheet-tldr/tldr/bun-link
2025-12-29 00:23:53 +00:00

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]}}`