On this page
deno add
Command line usage
deno add [OPTIONS] [packages]...
Add dependencies to your configuration file.
deno add jsr:@std/path
You can add multiple dependencies at once:
deno add jsr:@std/path jsr:@std/assert
Options Jump to heading
--allow-scripts
Jump to heading
Allow running npm lifecycle scripts for the given packages
Note: Scripts will only be executed when using a node_modules directory (--node-modules-dir
).
--dev
Jump to heading
Short flag: -D
Add as a dev dependency.