A Deno CLI for lazy typists.
Installs the cli globally.
deno install --allow-run -RWESN --unstable-kv -g -n dx jsr:@dx/dx
Upgrades the dx cli.
dx upgrade
dx --help
dx main.ts
will execute:
deno run main.ts
dx app
will execute:
deno run app.ts
Note:
If a deno task with this name exists, it will be executed.
dx --allow-read app
will execute:
deno run --allow-read app.ts
deno.json:
{
"tasks" {
"do": "deno lint && deno fmt"
}
}
dx do
will execute:
deno task do
dx test
will execute:
deno test
If you only want to see what is being executed, put the argument --dry-run
at the end of the commands.
dx test --dry-run
dx init
will execute:
deno init
...but...
dx init app
...executes a slightly extended init. The value behind dx init
creates an initial file with this name. This means that dx init main
creates the file main.ts
(and main.test.ts
).
dx
does not call deno REPL. If you want to start REPL, execute deno
directly.
dx -h
or dx --help
calls the own help. If you want to call the deno help, use the original commands like deno -h
deno --help
or deno help
.