Vercel "Project not found" in CI
The Vercel CLI resolved a project ID or name that does not exist under the token's scope. Either the .vercel/project.json link points at a different team, or VERCEL_ORG_ID / VERCEL_PROJECT_ID are wrong.
What this error means
A vercel pull or vercel deploy step fails with "Error: Project not found" even though the project exists in the dashboard.
Vercel CLI
Error: Project not found ("VERCEL_PROJECT_ID" is set but does not match a project)Common causes
Wrong org or project ID in CI
The VERCEL_ORG_ID or VERCEL_PROJECT_ID values do not match the project under the token's team scope.
The token belongs to a different scope
The project lives under a team, but the token is personal or scoped to another team, so the CLI cannot see it.
How to fix it
Set the org and project IDs from the linked project
- Run
vercel linklocally and read.vercel/project.jsonfor the IDs. - Store them as
VERCEL_ORG_IDandVERCEL_PROJECT_IDCI variables. - Use a token scoped to the same team that owns the project.
.github/workflows/ci.yml
env:
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}Pass the correct scope
If the project belongs to a team, pass --scope <team> so the CLI looks under the right account.
Terminal
vercel deploy --scope my-team --token=$VERCEL_TOKENHow to prevent it
- Pull project IDs from
.vercel/project.jsonaftervercel link. - Use a team-scoped token that matches the project owner.
- Set
--scopewhen the project is owned by a team.
Related guides
Vercel "No existing credentials found" in CIFix Vercel CLI "Error: No existing credentials found. Please run vercel login or pass --token" in CI - the ru…
Vercel "Environment Variable references Secret which does not exist" in CIFix Vercel "Error: Environment Variable X references Secret Y, which does not exist" in CI - vercel.json maps…
Netlify "site not found" (NETLIFY_SITE_ID) in CIFix Netlify CLI "Error: site not found" in CI - the CLI has no linked site and no NETLIFY_SITE_ID, or the ID…