Skip to content

Commit 8ae5b11

Browse files
committed
docs: document JSR
1 parent c0e618c commit 8ae5b11

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/cli/add.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ You may also install packages by:
3636

3737
[the corresponding guide]: #install-from-remote-tarball
3838

39+
### Install from the JSR registry
40+
41+
Added in: v10.9.0
42+
43+
To install packages from the [JSR](https://jsr.io/) registry, use the `jsr:` protocol prefix:
44+
45+
```
46+
pnpm add jsr:@hono/hono
47+
pnpm add jsr:@hono/hono@4
48+
pnpm add jsr:@hono/hono@latest
49+
```
50+
51+
This works just like installing from npm, but tells pnpm to resolve the package through JSR instead.
52+
3953
### Install from the workspace
4054

4155
Note that when adding dependencies and working within a [workspace], packages

0 commit comments

Comments
 (0)