Linking and Unlinking Projects
Associate local project directories with Globe projects using globe link and globe unlink commands, with support for monorepos and multiple projects.
The globe link and globe unlink commands manage the association between your local project directories and your Globe projects.
globe link
Associates a local directory with a Globe project. This is required before you can deploy using globe deploy.
Flags
--project: Specify the project ID or name to link. If omitted, the CLI will prompt you interactively--show-all: Lists all linked projects within the current directory (useful for monorepos)--help: Display help information--verbose: Display verbose output--token: Use API token for CLI authentication
Interactive Workflow
- Run
globe linkin your project's root directory - The CLI will display a list of your Globe projects
- Select the project you want to link
- The CLI stores the project association in the
.dart_tool/dart_globedirectory (add this to your.gitignore)
Multiple Projects (Monorepos)
globe link supports linking multiple projects within a single directory. Use --show-all to view linked projects. When running globe deploy, use --project or the interactive prompt to specify the target project.
Flags
--project: Specify the project ID or name to unlink. If omitted, the CLI will prompt you interactively--help: Display help information--verbose: Display verbose output--token: Use API token for CLI authentication
Interactive Workflow
- Run
globe unlinkin your project's root directory - The CLI will display a list of linked projects
- Select the project you want to unlink
- The CLI removes the association
Related Topics
- Globe CLI Overview - Learn about all available CLI commands
- Deploying a Project - Deploy your application after linking
- Creating a New Project - Create a new Globe project
