forge link
Link the current working directory to a project. Writes
..forge/link.json
Command
forge link [project-id]
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
| string | no | Project ID or slug; without args, lists projects |
Flags
None.
Examples
Link to a project:
forge link my-app
List projects to choose from:
forge link
# → prj_xxx my-app ready free
# → prj_yyy another-app ready pro
Errors
| Exit code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
Pitfalls
- No arguments — without a project ID, lists your accessible projects for selection.
- Link file — writes the link to
in the current directory. Commands like.forge/link.json
andforge status
use this file to determine the target project.forge deploy
See also
{auto-injected}
Tested against
{auto-injected}