When using the Vercel CLI to set environment variables or trigger deployments from CI/CD pipelines, you sometimes need ORG_ID and PROJECT_ID. Have you ever been confused about where to find these IDs?
This article introduces two simple methods to find your Vercel ORG_ID and PROJECT_ID.
How to Find Vercel ORG_ID and PROJECT_ID
Method 1: Check the Local .vercel Directory
The most convenient method is to check files that exist in your local development environment.
When you link a Vercel project locally (vercel link) or pull it (vercel pull), a hidden directory called .vercel is created in the project root directory. The project.json file inside contains the IDs.
- Open your project’s root directory
- Open the
.vercel/project.jsonfile - The file contains the IDs with keys
orgIdandprojectId
{
"projectId": "prj_1234567890abcdefghijklopqrst",
"orgId": "team_1234567890abcdefghijklop"
}This method is very fast when you’re already working on the target project locally.
Method 2: Check from the Vercel Dashboard
If you don’t have the project files locally or want to check directly from the browser, use the Vercel dashboard.
How to Check Org ID
Org ID is also called “User ID” for personal accounts.
- Go to Vercel account list
- Click the “View” link for the Team whose ID you want to check
- Navigate to https://vercel.com/YOUR_TEAM_NAME/~/settings
- The Team ID item at the bottom of the General tab is the
Org ID
How to Check Project ID
- Go to the Vercel dashboard
- Select the project whose ID you want to check
- Navigate to the Settings tab of the project page
- The Project ID item at the bottom of the General section is the
Project ID
Summary
Vercel’s ORG_ID and PROJECT_ID can be easily checked using these two methods:
- From local environment: Check the contents of the
.vercel/project.jsonfile - From browser: Check the Settings page of the Vercel dashboard
Use them appropriately depending on the situation for smooth development and integration setup.
That’s all from the Gemba.