hud link command connects a local directory to an existing HUD platform environment, similar to vercel link for Vercel projects.
Usage
Arguments
Directory to link
Options
Environment ID to link to. If not provided, shows an interactive list. Short:
-iSkip confirmation prompts. Short:
-yPrerequisites
What It Does
Select Environment
If
--id not provided, fetches your environments and shows an interactive selectionExamples
Interactive Selection
Direct Link
Link Subdirectory
Use Cases
Reconnecting After Deleting Link
If you accidentally deleted.hud/deploy.json:
Working on Multiple Machines
Switching Environments
Link File
After linking,.hud/deploy.json contains:
The
.hud/ directory should typically be added to .gitignore as it contains machine-specific linking info.See Also
hud deploy- Deploy environment to platform- Platform Environments - Managing environments on hud.ai