Whats the difference beetween deno install and deno compile?

Viewed 337

If I do deno --help it shows:

  • compile = Compile the script into a self-contained executable
  • install = Install script as an executable

What's the difference between these two commands?

1 Answers
Command Output Self contained 1 Deno runtime integrated 2
compile binary y y
install script (shell / .bat) n n
bundle .js y n
1 self contained := includes local and remote dependencies / scripts, single file

2 integrated := no separate runtime is needed

Related