dock link
Link the current folder to an existing DockHosting project.
Plain English Linking a folder means “when I run commands here, use this DockHosting app.” It saves you from typing the project name every time.
Usage
dock linkWhat it does
The CLI lists/searches your projects, asks which one this folder should deploy to, then saves the project ID in local folder metadata.
After linking, dock deploy, dock logs, dock run, and other project commands
can infer the project from the current directory.
Example
cd my-app
dock link
dock logs
dock deployThe last two commands use the project selected during dock link.
When to use it
- You cloned a repo on a new machine.
- You want a local folder to deploy to an existing project.
dock deploysays the folder is not linked.
Wrong project linked?
Run dock link again in the folder and choose the correct project.