Loading...
Loading...
Deploy projects to Vercel with automatic configuration. Sets project name from folder name, deploys with --yes flag, and disables Vercel Authentication (SSO protection) post-deploy via API. Use when deploying to Vercel, running "deploy to vercel", "vercel deploy", or any Vercel deployment task. Handles both preview and production deployments.
npx skill4agent add alfredang/skills vercel-deploymentvercel --versionnpm i -g vercelvercel whoamivercel loginbasename "$(pwd)"--yesvercel --yesvercel --yes --prod--yes# Set token for API access
export VERCEL_TOKEN="<token>"
# Optional: set team ID if using a team
export VERCEL_TEAM_ID="<team-id>"
# Preview deploy
bash scripts/deploy.sh /path/to/project
# Production deploy
bash scripts/deploy.sh /path/to/project prodssoProtectionPROJECT_NAME=$(basename "$(pwd)")
curl -X PATCH "https://api.vercel.com/v9/projects/$PROJECT_NAME" \
-H "Authorization: Bearer $VERCEL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ssoProtection": null}'?teamId=<TEAM_ID>vercel curl -X PATCH "/v9/projects/$(basename "$(pwd)")" \
-H "Content-Type: application/json" \
-d '{"ssoProtection": null}'| Variable | Required | Description |
|---|---|---|
| For auth disable | API token from https://vercel.com/account/tokens |
| For team projects | Team ID from Vercel dashboard |
--yesVERCEL_TOKENssoProtectionnull