devault-cli
v0.1.2
Published
d → the right dev command.
Readme
d(evault)
we all work on too many projects now. why do we have to remember (and type) dev commands?
one project has bun dev, the other pnpm dev, another cargo run, etc.
what if all you needed to type was d?
installation
requires bun.
bun i -g devault-cliusage
drunning d for the first time in a directory will ask you for the command it should run. future runs will immediately alias to the command you've entered.
commands
save a command for the current directory:
d set "bun dev"run it later:
dsee what d thinks this directory is:
d showforget the saved command:
d forgetlist everything you've saved:
d listexamples
the command can be whatever you would have typed yourself:
d set "bun dev"
d set "pnpm dev"
d set "npm run dev"
d set "yarn dev"
d set "mise run dev"
d set "make dev"
d set "just dev"
d set "docker compose up"
d set "cargo run"
d set "go run ."devault does not know what a dev server is. it just remembers the command you told it.
first run
if nothing is saved yet, d will suggest obvious commands from the files in the project.
for node projects it looks at lockfiles and package scripts, so a bun project with a dev script gets:
bun devfor other projects it can suggest things like:
mise run dev
make dev
docker compose up
cargo run
go run .you can always ignore the suggestions and type the command yourself.
non-interactive
set D_NO_PROMPT=1 if you want d to fail instead of asking questions:
D_NO_PROMPT=1 ddevelopment
run with bun:
bun run devbuild:
bun run buildthe built cli is bundled into:
dist/cli.jsnotes
this is intentionally not a task runner, process manager, env manager, monorepo thing, shell integration, or runtime. what makes it good is it's everything-agnostic. you tell d what to run, and it does so.
it is a glorified auto-alias with a memory.
that is the whole point.
