BlueForge Docs

forge link

Link the current working directory to a project. Writes

.forge/link.json
.

Command

forge link [project-id]

Arguments

NameTypeRequiredNotes
project-id
stringnoProject 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 codeMeaning
0Success
1General error

Pitfalls

  • No arguments — without a project ID, lists your accessible projects for selection.
  • Link file — writes the link to
    .forge/link.json
    in the current directory. Commands like
    forge status
    and
    forge deploy
    use this file to determine the target project.

See also

{auto-injected}

Tested against

{auto-injected}