Hey everyone,
I’m running into a frustrating issue when trying to deploy my project from the CLI. Every time I run:
vercel --prod OR vercelI get this error:
Error: Git author mybookshelf-dev@gmail.com must have access to the team Amir's projects on Vercel to create deployments.My Vercel project name: mybookshelf
It’s connected to my Git repository (mybookshelf on GitHub)
I’m logged into Vercel CLI as:
vercel whoami> mybookshelfdevThe project currently exists under the team workspace “Amir’s projects” (the user belong to the email i mentioned above)
Everything is connected correctly (I suppose), and I can deploy successfully through the Vercel Dashboard -
but any CLI deployment (vercel --prod) fails with the Git author access error above.
What I’ve tried
Removing
.vercel/and re-linking the projectLogging out and back in with the correct account
Disconnecting and reconnecting the GitHub repo
Re-creating the project under the same team
Deploying from a clean local folder
None of these have fixed the issue - the CLI still believes my Git author doesn’t have access to the team, even though I’m the one who owns both the team and the project.
What I’m trying to achieve
I simply want to be able to run:
vercel --prodfrom my local CLI and have the deployment go through smoothly, just like it does from the dashboard.
Questions
Why does this “Git author must have access” error appear when I’m the project owner?
Is there a way to make the CLI deployment work without recreating the project from scratch?
Should I adjust any settings or permissions within the team or project to fix this?
Any help or clarification would be hugely appreciated - I’ve already tried most of the obvious fixes and just want to get back to deploying smoothly via CLI.
Thanks so much 🙏