You are viewing documentation generated from a user contribution or an upcoming or past release. The contents of this document may not have been reviewed by the Deno team. Click here to view the documentation for the latest release.
deno compile [--output <OUT>] <SRC> will compile the script into a
> deno compile https://deno.land/std/examples/welcome.ts
If you omit the
OUT parameter, the name of the executable file will be
deno install, the runtime flags used to
execute the script must be specified at compilation time. This includes
> deno compile --allow-read --allow-net https://deno.land/std/http/file_server.ts
Script arguments can be partially embedded.
> deno compile --allow-read --allow-net https://deno.land/std/http/file_server.ts -p 8080 > ./file_server --help
You can compile binaries for other platforms by adding the
--target CLI flag.
Deno currently supports compiling to Windows x64, macOS x64, macOS ARM and Linux
deno compile --help to list the full values for each compilation
Unavailable in executables
- Dynamic Imports