@dekit/cli
v0.10.2
Published
Process manager for dev and prod
Maintainers
Readme
dekit
Process manager for dev and prod.
dekit runs your project's tasks, such as servers, databases and workers, in development and in production. You define the tasks in a config file, and dekit handles dependencies, crashes and restarts.
Install
npm install -g @dekit/cliThis installs the dekit command. The @dekit/cli package is a small JavaScript launcher plus a platform-specific optional dependency containing the native binary. It does not run install scripts.
Supported npm platforms:
- macOS arm64:
@dekit/dekit-darwin-arm64 - macOS x64:
@dekit/dekit-darwin-x64 - Linux arm64:
@dekit/dekit-linux-arm64 - Linux x64:
@dekit/dekit-linux-x64 - Windows x64:
@dekit/dekit-win32-x64
dekit also installs with a script (curl -fsSL https://dekit.run/install.sh | sh, or irm https://dekit.run/install.ps1 | iex on Windows) or from PyPI (pip install dekit-cli).
dekit update updates only a dekit from the script. Update this one with npm install -g @dekit/cli@latest, then run dekit runner upgrade --all to switch running runners to it.
Quick start
dekit.yaml at the project root:
tasks:
db:
cmd: ["postgres", "-D", ".data/db"]
ready: { log: "ready to accept connections" }
api:
cmd: ["cargo", "run", "-p", "api"]
deps: [db]
autostart: truedekit up # start the runner and the autostart tasks
dekit ls # see what is running
dekit attach # open the terminal UI
dekit down # stop for the day; `dekit up` brings everything backThe tasks keep running after you close the terminal. dekit help shows the docs in your terminal.
Coming from mprocs
dekit is the next version of mprocs. dekit mprocs runs your mprocs.yaml with the same flags and keys. See Coming from mprocs to switch to dekit.yaml.
Links
- Documentation: https://dekit.run/docs
- Changelog: https://github.com/pvolok/dekit/blob/master/CHANGELOG.md
- Repository: https://github.com/pvolok/dekit
