DockHosting Docs

CLI Reference

Install the dock CLI and use it to deploy and follow logs from your terminal.

The dock CLI is free on every plan, for macOS, Linux, and Windows.

Install

curl -fsSL https://get.dockhosting.dev/install.sh | sh

The installer places dock on your PATH and keeps it updated — you don't need to reinstall to get new versions.

dock deploy

Run from the root of your project:

dock deploy

Builds and ships the folder you're in. DockHosting detects your framework and picks the matching build, or uses your Dockerfile as-is if one exists at the repo root. See Deploying for what each framework needs.

dock logs --follow

dock logs --follow

Streams build and runtime logs live, straight to your terminal — the same stream the dashboard shows. Useful for watching a deploy in progress, or tailing a running app without leaving your editor.

Drop --follow to print the current log buffer once and exit.

Everything else

The CLI has more commands than this page covers in detail. Run:

dock --help

to see the full list for your installed version, or a specific command's flags with dock <command> --help.

Uninstall

rm "$(command -v dock)"

On this page