Installation
Install pitchfork with mise, Cargo, or a prebuilt binary. You also need the programs your daemon commands invoke; pitchfork does not bundle Node.js, Python, databases, or other application runtimes.
mise
mise manages the pitchfork binary and its version:
mise use -g pitchforkThis installs it for use across projects. To pin a version for a project, use mise use pitchfork@<version> from that project instead.
Cargo
With the Rust toolchain installed:
cargo install pitchfork-cli --lockedThe package is named pitchfork-cli; the installed command is pitchfork. Make sure Cargo's binary directory (usually ~/.cargo/bin) is on PATH.
Release binary
Download the archive for your operating system and CPU architecture from GitHub releases, extract it, and place pitchfork (or pitchfork.exe) in a directory on PATH.
Pitchfork has builds for macOS, Linux, and Windows. Most examples in these docs use a POSIX shell. The default daemon shell is sh -c on Unix and cmd /C on Windows; to run the POSIX examples on Windows, put Git for Windows' sh.exe on PATH and set general.shell to sh -c. Unix-specific features include user switching, signals, and the macOS/Linux boot integrations.
Verify the installation
pitchfork --version
pitchfork --helpContinue with the quickstart to run a daemon.
Shell completion
Completion is generated by pitchfork and is separate from the shell hook that starts and stops daemons. The scripts are short and ask the installed pitchfork for candidates each time you press Tab, so they follow the version you have installed and need no other tool.
Install the script for your shell:
pitchfork completion bash --install
pitchfork completion zsh --install
pitchfork completion fish --installBash, Zsh, Fish, PowerShell, Elvish, and Nushell are supported. --install writes one file where that shell looks for completions and never edits your shell startup files; when a shell needs a line added once, it prints it. Running it again after an upgrade is safe, and a file you wrote yourself is left alone unless you pass --force. Omit --install to print the script instead, for example pitchfork completion fish | source.
Bash needs bash-completion loaded, or you can source the generated file from ~/.bashrc. For Zsh, add the directory --install reports to fpath before your existing compinit call, as the command prints.
Start a new shell after configuring completion.
Optional alias
Add alias pf=pitchfork to ~/.bashrc or ~/.zshrc. For Fish, add alias pf pitchfork to ~/.config/fish/config.fish.
pf api then uses the implicit start shorthand, equivalent to pitchfork start api.
