https://github.com/thomas3577/dx
A Deno CLI for lazy typists.
https://github.com/thomas3577/dx
cli deno
Last synced: 11 months ago
JSON representation
A Deno CLI for lazy typists.
- Host: GitHub
- URL: https://github.com/thomas3577/dx
- Owner: thomas3577
- License: mit
- Created: 2023-09-09T08:29:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-26T06:04:12.000Z (11 months ago)
- Last Synced: 2025-08-04T03:39:18.912Z (11 months ago)
- Topics: cli, deno
- Language: TypeScript
- Homepage: https://jsr.io/@dx/dx
- Size: 147 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deno Task CLI
[](https://jsr.io/@dx/dx)
[](https://jsr.io/@dx/dx/score)
[](https://github.com/thomas3577/dx/actions/workflows/deno.yml)
A Deno CLI for lazy typists.
## Install
Installs the cli globally.
```bash
deno install --allow-run -RWESN --unstable-kv -g -n dx jsr:@dx/dx
```
## Upgrade
Upgrades the dx cli.
```bash
dx upgrade
```
## Help
```bash
dx --help
```
## Examples
### Run app
```bash
dx main.ts
```
will execute:
```bash
deno run main.ts
```
### Run app (without extention)
```bash
dx app
```
will execute:
```bash
deno run app.ts
```
**Note:**\
If a deno task with this name exists, it will be executed.
### Run app (with args)
```bash
dx --allow-read app
```
will execute:
```bash
deno run --allow-read app.ts
```
### Run Deno Task
**deno.json:**
```json
{
"tasks" {
"do": "deno lint && deno fmt"
}
}
```
```bash
dx do
```
will execute:
```bash
deno task do
```
### Run Deno Command
```bash
dx test
```
will execute:
```bash
deno test
```
## Dry-run
If you only want to see what is being executed, put the argument `--dry-run` at the end of the commands.
```bash
dx test --dry-run
```
## Init Deno
```bash
dx init
```
will execute:
```bash
deno init
```
...but...
```bash
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`).
## Limitation
`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`.