This website works best with JavaScript enabled.
Bookmark
🚀 CLI
npm i -g vercel
vercel login
vercel init
vercel deploy
vercel --prod
vercel env ls
vercel env add
vercel env pull
vercel env rm
vercel logs <deployment-url>
vercel projects list
vercel teams list
📦 Project Setup
vercel link                # Link local folder to Vercel project
vercel --confirm           # Deploy without prompts
vercel --token <token>     # Use API token
🗂️ Configuration
// vercel.json
{
  "version": 2,
  "builds": [
    { "src": "index.js", "use": "@vercel/node" }
  ],
  "routes": [
    { "src": "/api/(.*)", "dest": "/api/$1.js" }
  ],
  "env": {
    "NODE_ENV": "production"
  }
}
🌐 Domains
vercel domains add example.com
vercel domains rm example.com
vercel certs issue example.com
vercel dns add example.com A 1.2.3.4
vercel dns ls example.com
🔒 Environment Variables
vercel env add VAR_NAME production
vercel env add VAR_NAME preview
vercel env pull .env
vercel env rm VAR_NAME production
📊 Monitoring & Logs
vercel logs <deployment-url>
vercel inspect <deployment-url>
vercel analytics
🛠️ Misc
vercel help
vercel whoami
vercel logout
Typescript
Vue

Want to update?

Subscribe to my blog to receive the latest updates from us.

Monthly articles
New articles will be created every month.
No spam
All notifications are notified to you, not spam or advertising.

© Tran Nguyen Thuong Truong, 2024 - PRESENT