DockHosting CLI
The CLI is the terminal version of the dashboard. Use it to deploy apps, inspect logs, manage databases, switch workspaces, and run commands inside containers.
Start here
Install the CLI, run dock login, then run dock deploy
inside your app folder. If a word feels unfamiliar, read Core Concepts first.
Install
curl -fsSL https://get.dockhosting.dev/install.sh | shFirst commands
dock login
cd my-app
dock deployWhat does login save? It saves a local access token so future CLI commands can talk to your DockHosting account without asking for your password every time.
What dock --help shows
These are the commands users see when they run dock --help.
dock loginOpen the browser, authorize the CLI, and save your session locally.dock logoutRemove the saved local CLI session from this computer.dock whoamiShow which account and workspace/context the CLI is using.dock helpShow help for the CLI or a specific command.dock deployUpload the current folder, build it, and run it as a DockHosting project.dock linkConnect this local folder to an existing DockHosting project so future commands know what app you mean.dock lsList your projects. Aliases: dock list and dock ps.dock infoShow one project’s status, type, URL, custom domain, and repo details.dock openOpen a project’s public URL in your browser.dock logsPrint recent app logs, or stream them live with —follow.dock startStart a stopped project.dock stopStop a running project. A manually stopped project does not wake automatically.dock restartRestart a project container.dock rmDelete a project after confirmation.dock envList, add, and remove project environment variables.dock runRun one command inside the linked project’s container.dock shellOpen an interactive shell inside a project container.dock tokensShow your current token balance.dock contextSwitch between your personal account and workspaces.dock dbCreate, connect, inspect, back up, link, and manage databases.dock completionGenerate shell autocomplete scripts for Bash, Zsh, Fish, or PowerShell.dock updateDownload and install the latest CLI binary.Global flags
| Flag | Meaning |
|---|---|
-h, --help | Show help for any command |
-v, --version | Print the CLI version |
Command pages
Names vs IDs Most commands accept a project or database name. IDs also work. If you do not pass a name, the CLI tries to use the project linked to the current folder.