mirror of
https://github.com/vercel/vercel-plugin.git
synced 2026-09-14 15:39:47 +08:00
748 B
748 B
description
| description |
|---|
| Deploy the current project to Vercel. Pass "prod" or "production" as argument to deploy to production. Default is preview deployment. |
Deploy to Vercel
Deploy the current project to Vercel using the CLI.
Steps
- Check if the project is linked to Vercel (
vercel linkstatus) - If not linked, run
vercel linkfirst - Check for uncommitted changes and warn the user
If "$ARGUMENTS" contains "prod" or "production":
- Run
vercel --prodfor a production deployment - Confirm with the user before deploying to production
Otherwise:
- Run
vercelfor a preview deployment - Return the preview URL to the user
After deployment, show the deployment URL and suggest checking logs with vercel logs <url> if needed.