[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Feedback](/c/feedback/8)

# Add --role flag to vercel teams invite for automated member onboarding

20 views · 3 likes · 3 posts


Tadashi Shigeoka (@shige) · 2026-03-16 · ♥ 1

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
```bash
vercel teams invite user@example.com --scope my-team
```

### Proposed Behavior
```bash
vercel teams invite user@example.com --scope my-team --role DEVELOPER
```

This 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:

```bash
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!


Anshuman Bhardwaj (@anshumanb) · 2026-03-16 · ♥ 1

Hi @shige, thanks for taking the initiative for this with a PR. I'll share it with our team. 

If you are confident about the PR feel free to make it ready so maintainers can review.


Tadashi Shigeoka (@shige) · 2026-03-17 · ♥ 1

Thanks, @anshumanb san! 
I’ve marked the PR as ready for review. Looking forward to the team’s feedback.