How to add shebang to deno script 2021-08-29 If you need to add shebang to deno script add this line on the top of the script: #!/usr/bin/env -S deno run --allow-read --allow-write Now if you need to execute script type: ./script.ts and you are done 🎉.