Skip to content

Commit 44d9281

Browse files
bartlomiejuclaudethisisjofrank
authored
docs: document deno install --global --compile flag (#2950)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Jo Franchetti <jofranchetti@gmail.com>
1 parent 4c73ea2 commit 44d9281

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

runtime/reference/cli/install.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,20 @@ example installation command to your repository:
158158
$ deno install -n awesome_cli https://example.com/awesome/cli.ts
159159
```
160160

161+
### deno install --global --compile [PACKAGE_OR_URL]
162+
163+
Use this command to compile a package or script into a standalone,
164+
self-contained binary. The resulting executable can be distributed and run
165+
without requiring Deno to be installed on the target system.
166+
167+
```shell
168+
$ deno install --global --compile -A npm:@anthropic-ai/claude-code
169+
```
170+
171+
This combines the behavior of [`deno compile`](/runtime/reference/cli/compile/)
172+
with global installation — producing a native binary placed in the installation
173+
root (same as `--global` without `--compile`).
174+
161175
## Native Node.js addons
162176

163177
A lot of popular packages npm packages like

0 commit comments

Comments
 (0)