Install package by URL

Set the URL as as deno.land package URL.

$ deno install \
  --allow-read --allow-write \
  PACKAGE_URL

Suggested flags

  • Add the -f to force install, if you have it installed already.
  • Use a custom name with -n my-name.
  • Flags are here set at install time. Otherwise, whenever you run the package you have to add the flags or accept the permissions in the prompt.

Example

From the minifier package.

$ deno install \
  --allow-read --allow-write --allow-hrtime \
  https://deno.land/x/minifier/cli.ts

Note from that package:

We strongly suggest including the --allow-hrtime flag as it allows the performance benchmarks to be more accurate.

That might not be useful for other packages.