VercelVercel
Menu

CLI Workflows

Last updated February 24, 2026

These workflows show how to compose multiple Vercel CLI commands into complete work sessions. Each workflow walks through a real task from start to finish, including the reasoning between steps.

Workflows are distributed throughout the docs, colocated with the features they use. This page links to all available workflows.

WorkflowDescriptionEntry point
Debugging production 500 errorsFind, fix, and verify production 500 errors using logs, inspect, and preview deploymentsObservability
Rolling back a production deploymentRecover from a bad production deployment with rollback, investigation, and redeploymentDeployments
Debugging slow Vercel FunctionsDiagnose and fix slow functions using timing analysis, logs, and configuration tuningFunctions
Diagnosing and fixing cache issuesIdentify and fix stale CDN cache, data cache, and build cache problemsCDN Cache
WorkflowDescriptionEntry point
Deploying a project from the CLISet up and deploy a project end-to-end, from linking to production with a custom domainProjects
Setting up a custom domainAdd a custom domain, configure DNS records, and verify SSL certificatesDomains
Managing environment variables across environmentsAdd, sync, and verify environment variables across development, preview, and productionEnvironment Variables
Promoting a preview deployment to productionTest a preview deployment and promote it to production without rebuildingDeployments
Performing a rolling release deploymentGradually roll out a production deployment with traffic stages and monitoringRolling Releases
WorkflowDescriptionEntry point
Managing redirects at scaleAdd, bulk upload, version, and roll back project-level redirectsRedirects
Managing Vercel Blob storage from the CLICreate blob stores, upload files, organize content, and manage storageVercel Blob
WorkflowDescriptionEntry point
Running commands in a Vercel SandboxCreate isolated sandbox environments to run builds, tests, and commands safelyVercel Sandbox
WorkflowDescriptionEntry point
Rolling out a new featureCreate a feature flag, wire it into your app, and progressively enable it across environmentsVercel Flags
Running an A/B testSet up an A/B test, track results through Web Analytics, and clean up afterwardVercel Flags
Cleaning up after a full rolloutAudit active flags, remove a fully rolled-out flag from code, and archive itVercel Flags
Setting up Flags ExplorerAdd Flags Explorer to the Vercel Toolbar so you can override flag values on preview deploymentsVercel Flags

These guides help you delegate code-generation tasks to a coding agent like Claude Code, Cursor, or Cline. Each one provides prompts you can copy into your agent to scaffold a full integration.

GuideDescriptionEntry point
AI Gateway agent quickstartSet up AI Gateway with the AI SDK using prompts and cURL verificationAI Gateway
Sign in with Vercel agent quickstartScaffold the full OAuth flow with PKCE, token handling, and a profile pageSign in with Vercel
Routing Middleware agent quickstartCreate routing middleware for redirects, auth checks, or geolocation rewritesRouting Middleware

These workflows are designed as composition patterns. Each one shows a complete sequence of CLI commands with the reasoning that connects them. AI coding agents can use these patterns to:

  • Learn when to reach for each Vercel CLI command
  • Understand the investigation flow for common problems
  • Compose commands into multi-step sessions for novel situations
  • Follow the same debugging methodology that experienced Vercel users follow

Was this helpful?

supported.