When a personal account username and a team slug are identical, the --scope flag always resolves to the personal account, making it impossible to target the team. This effectively locks you out of team-scoped CLI operations like vercel dns add.
- Have a personal account with username
myname - Rename a team's slug to also be
myname(the dashboard allows this) - Try to run a team-scoped command:
$ vercel dns add example.com @ TXT "some-value" --scope myname
Vercel CLI 50.14.0
Error: You cannot set your Personal Account as the scope.The CLI always interprets --scope myname as the personal account, with no way to target the team.
Either:
- The CLI should disambiguate when a slug matches both a personal account and a team (e.g., prompt the user to choose, or prefer the team since personal accounts don't need
--scope) - The dashboard should prevent setting a team slug identical to your personal account username
- The CLI should accept team IDs (e.g.,
--scope team_PAnD0WJSPR6gdyAYYUOzP9hm) as an escape hatch
Use the raw team ID from .vercel/project.json instead of the slug:
# Find the team ID
$ cat .vercel/project.json
{"projectId":"prj_...","orgId":"team_PAnD0WJSPR6gdyAYYUOzP9hm","projectName":"my-project"}
# Use it directly
$ vercel dns add example.com @ TXT "some-value" --scope team_PAnD0WJSPR6gdyAYYUOzP9hm
> Success!This works but is not discoverable — most users would not think to try this.
- Vercel CLI: 50.14.0
- OS: macOS 15.6 (arm64)