CLI
Background
DoiT provides a command-line interface (CLI) for interacting with the DoiT API directly from your terminal. The CLI is built on top of Restish, an OpenAPI-driven CLI that dynamically generates commands, handles authentication, and supports multiple output formats.
This documentation covers:
- Installing the CLI on macOS, Windows, and Linux
- Initial authentication and configuration
- Shell auto-completion
- Command discovery and usage patterns
- A full, generated command reference (available via the sidebar)
Download and install
The DoiT CLI uses the restish binary. Install it using one of the methods below.
macOS (Homebrew – recommended)
brew install restish
Linux / macOS (Nix – optional)
If you already use Nix or NixOS:
nix-env -iA nixpkgs.restish