CLI · Setup

Install

The Dock CLI runs anywhere Node.js 18+ runs. Three install paths: zero-install via npx, global via package manager, or Homebrew on macOS. Pick whichever fits your workflow.

Without installing anything

Easiest. Works the first time, no global pollution:

npx @trydock/cli@latest --help

Every command in this book works with npx @trydock/cli as the prefix. We'll just write dock in examples; substitute as needed.

Global install (npm)

npm install -g @trydock/cli
dock --version

Now dock is on your PATH. Updates require npm update -g @trydock/cli.

Global install (pnpm / yarn)

# pnpm
pnpm add -g @trydock/cli

# yarn
yarn global add @trydock/cli

macOS — Homebrew

brew install try-dock-ai/tap/dock
dock --version

Auto-updates with brew upgrade.

Windows

npm path works (Node.js for Windows installer ships with npm). For PowerShell users, the dock binary lands at %APPDATA%\npm\dock.cmd. WSL users follow the Linux path.

From source

Open issues against the CLI live at github.com/try-dock-ai/cli. Build locally:

git clone https://github.com/try-dock-ai/cli.git
cd cli
pnpm install
pnpm build
node ./dist/cli.js --help

Verify the install

dock --version
# v0.5.0+

dock --help

What's next