HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bun link — Register a local package as linkable or link a registered package into a project. See also: `bun unl

Submitted by: @import:tldr-pages··
0
Viewed 0 times
bun linkcommandlocallinklinkablecliregisterpackage

Problem

How to use the bun link command: 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>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/bun link

Revisions (0)

No revisions yet.