glab repo remote add accepts a namespace/project
Introduced 2026-05-27 · score 0.96
HOW TO USE IT
To add a GitLab project as a remote, run `glab repo remote add <namespace/project>`; the remote name defaults to the first path component. [Official glab docs](https://docs.gitlab.com/cli/repo/remote/add/)
glab repo remote add <namespace/project>WHY THIS HELPS
Add a GitLab project as a remote in a repository.
REQUIREMENTS AND LIMITATIONS
- Version: v1.100.0
- <namespace/project> (required): Project reference used to add the Git remote.
- -n, --name <string>: Remote name; defaults to the first path component (namespace).
- -p, --protocol <string>: Git protocol: `ssh` or `https`; defaults to the `git_protocol` config.
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON