vercel-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Vercel CLI

Vercel CLI

Vercel has a full CLI:
vercel
. Use it before reaching for the dashboard or the REST API.
  • Pull env vars for local dev:
    vercel env pull
  • Inspect a deployment:
    vercel inspect <url>
  • Read runtime logs:
    vercel logs <url>
  • List deployments:
    vercel ls
  • Discover more:
    vercel --help
Deploys usually go through git/CI — do not
vercel deploy
production by hand unless the repo's workflow says so.
Vercel提供完整的CLI工具:
vercel
。在使用控制台或REST API之前,可以先尝试使用它。
  • 为本地开发拉取环境变量:
    vercel env pull
  • 查看部署详情:
    vercel inspect <url>
  • 读取运行时日志:
    vercel logs <url>
  • 列出部署记录:
    vercel ls
  • 了解更多命令:
    vercel --help
部署通常通过git/CI流程进行——除非仓库的工作流明确允许,否则不要手动使用
vercel deploy
进行生产环境部署。