CLI
To interact with the Deno runtime environment from your terminal or command prompt.
Execution
To run scripts.
To run a web server.
To run tasks configured in deno.json. (Ex.: deno task build)
It is possible to provide runtime arguments to your scripts.
deno run main.ts arg1 arg2 arg3Inside main.ts you grab the arguments with:
console.log(Deno.args);Note that anything passed after the script name will be passed as a script argument and not consumed as a Deno runtime flag.
Supply the --watch to run, test, fmt to enable the built-in file watcher.
The watcher enables automatic reloading of your application whenever changes are detected on the source files.
(Similar to nodemon for Node)
Other common flags
Can be checked in the docs.
Dependency Management
Add dependencies.
Install a dependency or a script.
Uninstall a dependency or a script.
Remove dependencies.
View or update outdated dependencies.
Tooling
Upgrade deno to last version.
Create a new project.
Run your tests.
Generate test coverage reports.
Generate documentation for a module.
Benchmarking tool.
Compile a program into a standalone executable.
Format your code.
Lint your code.
Last updated