#Postgres storage with vercel cli
1 messages · Page 1 of 1 (latest)
Hi @acoustic crystal. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Based on the information provided in the extracts, it appears that the creation of a new Postgres database on Vercel is done through the Vercel dashboard, not the Vercel CLI. Here are the steps to create a new Postgres database:
- In your dashboard on Vercel, create or select the project you want to work with.
- Select the Storage tab, then select the Connect Database button.
- Enter a database name. It can only contain alphanumeric letters (including "_" and "-") and can't exceed 32 characters.
- Select a region. If your project has Edge or Serverless Functions, choose an option near their regions for faster responses.
- Select Create and Continue.
- In the next view, change nothing and select Connect.
After creating the database, you can use the Vercel CLI to pull down the latest environment variables to get your local project working with the Postgres database by running vercel env pull .env.local (source (https://vercel.com/guides/nextjs-prisma-postgres)).