Hello Vercel team,
I’d like to request support for assigning a team member role directly from the CLI when inviting users to a team.
Problem
Currently, the vercel teams invite command does not support specifying a role, which complicates automation flows.
Current Behavior
vercel teams invite user@example.com --scope my-teamProposed Behavior
vercel teams invite user@example.com --scope my-team --role DEVELOPERThis would help with onboarding and automation flows where the invited user needs a specific non-default team role immediately.
Workaround
At the moment, the workaround is to call the Team Members API directly instead of using the CLI. For example:
curl -X POST \ -H "Authorization: Bearer $VERCEL_TOKEN" \ -H "Content-Type: application/json" \ -d '{"email":"user@example.com","role":"DEVELOPER"}' \ "https://api.vercel.com/v1/teams/my-team/members"I prepared a draft PR for this here:
https://github.com/vercel/vercel/pull/15567
Would this be the right direction for the CLI?
If the command shape looks acceptable, I’m happy to keep iterating on the PR.
Thanks!