[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1WV9EQBWD3X5WZZTJDPKK":3,"skill-same:01M6K1WV9EQBWD3X5WZZTJDPKK":159},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":136,"commitSha":137,"skillDirectory":138,"forksCount":139,"repositoryHtmlUrl":140,"repositoryHomepageUrl":6,"ownerHtmlUrl":141,"ownerBlogUrl":142,"ownerDescription":143,"updatedAt":144,"install":145,"resources":158},"01M6K1WV9EQBWD3X5WZZTJDPKK","vercel-cli",null,"Vercel CLI expert guidance. Use when deploying, managing environment variables, linking projects, viewing logs, managing domains, or interacting with the Vercel platform from the command line.","NagyVikt\u002Fcodex-plugins","NagyVikt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137165288?v=4","01M6K0SJ3R2DAZRJKJJS10VN87","Viktor Nagy","01M6K0SJ9HXN0GBD91QDQ9WNVV",2,"MIT","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-cli\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"vercel cli","vercel","cli","expert","handler","inspect","Cli Expert","heroku","Variables","domains","environment variables","project","terminal","command","projects","cron jobs","logs","streaming","status","config","2026-11-10 10:12:30",false,"---\nname: vercel-cli\ndescription: Vercel CLI expert guidance. Use when deploying, managing environment variables, linking projects, viewing logs, managing domains, or interacting with the Vercel platform from the command line.\nmetadata:\n  priority: 4\n  docs:\n    - \"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli\"\n  sitemap: \"https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml\"\n  pathPatterns:\n    - 'vercel.json'\n    - 'vercel.ts'\n    - '.vercel\u002F**'\n    - '.vercelignore'\n    - 'now.json'\n  bashPatterns:\n    - '^\\s*vercel(?:\\s|$)'\n    - '^\\s*vc(?:\\s|$)'\n    - '\\bnpx\\s+vercel\\b'\n    - '\\bpnpm\\s+dlx\\s+vercel\\b'\n    - '\\bbunx\\s+vercel\\b'\n    - '\\byarn\\s+dlx\\s+vercel\\b'\n    - '\\bnpx\\s+@vercel\u002Fconfig\\b'\n  promptSignals:\n    phrases:\n      - \"check deployment\"\n      - \"check deploy\"\n      - \"deployment status\"\n      - \"deploy status\"\n      - \"vercel logs\"\n      - \"deployment logs\"\n      - \"deploy logs\"\n      - \"vercel inspect\"\n      - \"is it deployed\"\n      - \"deploy failing\"\n      - \"deploy failed\"\n      - \"deployment error\"\n      - \"check vercel\"\n      - \"vercel status\"\n    allOf:\n      - [check, deployment]\n      - [check, deploy]\n      - [vercel, status]\n      - [vercel, logs]\n      - [deploy, error]\n      - [deploy, failed]\n      - [deploy, stuck]\n    anyOf:\n      - \"deployment\"\n      - \"deploy\"\n      - \"vercel\"\n      - \"production\"\n    noneOf:\n      - \"terraform\"\n      - \"aws deploy\"\n      - \"heroku\"\n    minScore: 6\nretrieval:\n  aliases:\n    - vercel command line\n    - vc cli\n    - deploy command\n    - vercel terminal\n  intents:\n    - deploy from cli\n    - link project\n    - manage domains\n    - view logs from terminal\n  entities:\n    - vercel CLI\n    - vercel deploy\n    - vercel env\n    - vercel link\n    - vercel logs\nchainTo:\n  -\n    pattern: '\"crons\"\\s*:'\n    targetSkill: cron-jobs\n    message: 'Cron configuration detected in vercel.json — loading Cron Jobs guidance for schedule syntax, CRON_SECRET verification, and function handler patterns.'\n  -\n    pattern: '\"functions\"\\s*:\\s*\\{|\"maxDuration\"\\s*:|\"memory\"\\s*:'\n    targetSkill: vercel-functions\n    message: 'Functions configuration detected in vercel.json — loading Vercel Functions guidance for runtime options, streaming, and Fluid Compute.'\n    skipIfFileContains: '\"crons\"\\s*:'\n  -\n    pattern: '\"redirects\"\\s*:\\s*\\[|\"rewrites\"\\s*:\\s*\\[|\"headers\"\\s*:\\s*\\['\n    targetSkill: routing-middleware\n    message: 'Routing rules in vercel.json — loading Routing Middleware guidance for platform-level request interception patterns.'\n\n---\n\n# Vercel CLI\n\nYou are an expert in the Vercel CLI v50.28.0 (`vercel` or `vc`). The CLI is the primary way to manage Vercel projects from the terminal.\n\n## Installation\n\n```bash\nnpm i -g vercel\n```\n\n## Login\n\nThe CLI uses an **OAuth 2.0 Device Flow** for authentication.\n\n```bash\nvercel login\n```\n\n> **Deprecation notice**: Email-based login (`vercel login your@email.com`) and the flags `--github`, `--gitlab`, `--bitbucket`, `--oob` were removed February 26, 2026. The `team` method (SAML-based login) remains supported until June 1, 2026, then will also be removed.\n\n## Core Commands\n\n### Deployment\n\n```bash\n# Preview deployment (from project root)\nvercel\n\n# Production deployment\nvercel --prod\n\n# Build locally, deploy build output only\nvercel build\nvercel deploy --prebuilt\n\n# Build for production (uses production env vars)\nvercel build --prod\nvercel deploy --prebuilt --prod\n\n# Force a new deployment (skip cache)\nvercel --force\n\n# Promote a preview deployment to production\nvercel promote \u003Cdeployment-url>\n\n# Rollback to previous production deployment\nvercel rollback\n```\n\n### Development\n\n```bash\n# Start local dev server with Vercel features\nvercel dev\n\n# Link current directory to a Vercel project\nvercel link\n\n# Deterministic non-interactive link (recommended for bootstrap\u002Fautomation)\nvercel link --yes --project \u003Cname-or-id> --scope \u003Cteam>\n\n# Pull environment variables and project settings\nvercel pull\n\n# Pull specific environment\nvercel pull --environment=production\n\n# Open linked project in the Vercel Dashboard\nvercel open\n```\n\n### Deterministic Project Linking (Recommended)\n\nPrefer explicit non-interactive linking for bootstrap and automation:\n\n```bash\nvercel link --yes --project \u003Cname-or-id> --scope \u003Cteam>\n```\n\nThis is more reliable than interactive prompt-driven linking, which can pick the wrong project or team in multi-account setups. If there is any ambiguity, run `vercel open` to confirm the dashboard project, then relink with explicit `--project` and `--scope`.\n\n### Environment Variables\n\n```bash\n# List all environment variables\nvercel env ls\n\n# Add an environment variable\nvercel env add MY_VAR\n\n# Add for specific environments\nvercel env add MY_VAR production\nvercel env add MY_VAR preview development\n\n# Add branch-scoped variable\nvercel env add MY_VAR preview --branch=feature-x\n\n# Add sensitive (write-only) variable\nvercel env add MY_SECRET --sensitive\n\n# Remove an environment variable\nvercel env rm MY_VAR\n\n# Pull all env vars to .env.local\nvercel env pull\nvercel env pull .env.production.local --environment=production\n```\n\n### Logs & Inspection\n\nThe `vercel logs` command (rebuilt February 2026) supports **historical log querying** and uses **git context by default** — it automatically scopes logs to your current repository when run from a project directory.\n\n```bash\n# View runtime\u002Ffunction logs (real-time)\nvercel logs \u003Cdeployment-url>\n\n# Follow logs in real-time (streaming mode)\nvercel logs \u003Cdeployment-url> --follow\n\n# Query historical logs (no longer limited to live-only)\nvercel logs --since 24h\nvercel logs --since 7d\n\n# Filter by time range\nvercel logs \u003Cdeployment-url> --since 1h\nvercel logs \u003Cdeployment-url> --since 30m\n\n# Filter by log level\nvercel logs \u003Cdeployment-url> --level error\nvercel logs \u003Cdeployment-url> --level warning\n\n# Filter by deployment ID, request ID, or arbitrary string\nvercel logs --deployment-id dpl_xxxxx\nvercel logs --request-id req_xxxxx\nvercel logs --query \"TypeError\"\n\n# Output as JSON (for piping to jq or other tools)\nvercel logs \u003Cdeployment-url> --json\n\n# Combine filters: stream errors from the last hour as JSON\nvercel logs \u003Cdeployment-url> --follow --since 1h --level error --json\n\n# Inspect a deployment (build details, metadata, function list)\nvercel inspect \u003Cdeployment-url>\n\n# List recent deployments\nvercel ls\n```\n\n> **Note:** `vercel logs` shows runtime request logs only. For build output, use\n> `vercel inspect \u003Cdeployment-url>` or view build logs at `https:\u002F\u002Fvercel.com\u002F{team}\u002F{project}\u002Fdeployments` → select deployment → **Build Logs**.\n>\n> **Drains and advanced observability:** Log drains, trace export, and analytics data forwarding are\n> configured via the Vercel Dashboard at `https:\u002F\u002Fvercel.com\u002Fdashboard\u002F{team}\u002F~\u002Fsettings\u002Flog-drains` or REST API (`\u002Fv1\u002Fdrains`), not the CLI. See `⤳ skill: observability`\n> for drain setup, payload schemas, and signature verification.\n\n### Domains\n\n```bash\n# List domains\nvercel domains ls\n\n# Add a domain to a project\nvercel domains add example.com\n\n# Remove a domain\nvercel domains rm example.com\n```\n\n### DNS\n\n```bash\n# List DNS records\nvercel dns ls example.com\n\n# Add a DNS record\nvercel dns add example.com @ A 1.2.3.4\n```\n\n### Teams\n\n```bash\n# List teams\nvercel teams ls\n\n# Switch to a team\nvercel teams switch my-team\n```\n\n### Cache Management\n\n```bash\n# Purge all cache (CDN + Data cache) for current project\nvercel cache purge\n\n# Purge only CDN cache\nvercel cache purge --type cdn\n\n# Purge only Data cache\nvercel cache purge --type data\n\n# Purge without confirmation prompt\nvercel cache purge --yes\n\n# Invalidate by tag (stale-while-revalidate)\nvercel cache invalidate --tag blog-posts\n\n# Invalidate multiple tags\nvercel cache invalidate --tag blog-posts,user-profiles,homepage\n\n# Hard delete by tag (blocks until revalidated — use with caution)\nvercel cache dangerously-delete --tag blog-posts\n\n# Hard delete with revalidation deadline (deletes only if not accessed within N seconds)\nvercel cache dangerously-delete --tag blog-posts --revalidation-deadline-seconds 3600\n\n# Invalidate cached image transformations by source path\nvercel cache invalidate --srcimg \u002Fapi\u002Favatar\u002F1\n\n# Hard delete cached image transformations\nvercel cache dangerously-delete --srcimg \u002Fapi\u002Favatar\u002F1\n```\n\n**Key distinction:** `invalidate` serves STALE and revalidates in the background. `dangerously-delete` serves MISS and blocks while revalidating. Prefer `invalidate` unless you need immediate freshness.\n\n**Note:** `--tag` and `--srcimg` cannot be used together.\n\n### MCP Server Integration\n\n```bash\n# Initialize global MCP client configuration for your Vercel account\nvercel mcp\n\n# Set up project-specific MCP access for the linked project\nvercel mcp --project\n```\n\nThe `vercel mcp` command links your local MCP client configuration to a Vercel Project. It generates connection details so AI agents and tools can call your MCP endpoints deployed on Vercel securely.\n\n### Programmatic Configuration (`@vercel\u002Fconfig`)\n\n```bash\n# Compile vercel.ts to JSON (stdout)\nnpx @vercel\u002Fconfig compile\n\n# Validate configuration and show summary\nnpx @vercel\u002Fconfig validate\n\n# Generate vercel.json locally for development\nnpx @vercel\u002Fconfig generate\n```\n\nUse `vercel.ts` (or `.js`, `.mjs`, `.cjs`, `.mts`) instead of `vercel.json` for type-safe, dynamic project configuration. Only one config file per project — `vercel.json` or `vercel.ts`, not both.\n\n> **Note:** Legacy `now.json` support will be removed on March 31, 2026. Rename to `vercel.json` (no content changes needed).\n\n### Marketplace Integrations\n\nAuto-provisioning is the default for `vercel integration add` — the CLI automatically creates resources and sets environment variables without extra prompts.\n\n```bash\n# List installed integrations\nvercel integration list\n\n# Add an integration (auto-provisions env vars by default)\nvercel integration add neon\n\n# Open an integration's dashboard\nvercel integration open neon\n\n# Remove an integration\nvercel integration remove neon\n```\n\n#### Agent-Optimized: `discover` and `guide`\n\nAI agents can autonomously discover, install, and retrieve setup instructions for Marketplace integrations (added March 2026):\n\n```bash\n# Search the integration catalog (returns JSON for automation)\nvercel integration discover --format=json\n\n# Search with a keyword filter\nvercel integration discover database --format=json\n\n# Get agent-friendly setup guide with code snippets\nvercel integration guide neon\n\n# Full workflow: discover → add → guide\nvercel integration discover storage --format=json\nvercel integration add neon\nvercel integration guide neon\n```\n\n- `discover` — Searches the Vercel Marketplace catalog. Use `--format=json` for non-interactive output suitable for scripting and agent pipelines.\n- `guide \u003Cname>` — Returns getting-started documentation in agent-friendly markdown: environment variables, SDK setup, and code snippets.\n- Human-in-the-loop safety: the CLI prompts for developer confirmation when accepting Terms of Service.\n\n> Full subcommands: `discover`, `guide`, `add`, `list` (alias `ls`), `balance`, `open`, `remove`.\n\n### Project-Level Routing (No Redeploy)\n\nCreate and update routing rules — headers, rewrites, redirects — without building a new deployment. Rules take effect instantly.\n\nAvailable via dashboard (CDN tab), API, CLI, and Vercel SDK. Project-level routes run after bulk redirects and before deployment config routes.\n\n### Feature Flags\n\n```bash\n# Create a feature flag\nvercel flags add redesigned-checkout --kind boolean --description \"New checkout flow\"\n\n# List SDK keys\nvercel flags sdk-keys ls\n\n# Enable\u002Fdisable, archive, and manage flags from CLI\nvercel flags --help\n```\n\nSee `⤳ skill: vercel-flags` for full flag configuration and adapter patterns.\n\n### Direct API Access\n\nThe `vercel api` command (added January 2026) gives direct access to the full Vercel REST API from the terminal. Designed for AI agents — call Vercel APIs with no additional configuration.\n\n```bash\n# Call any Vercel REST API endpoint\nvercel api GET \u002Fv9\u002Fprojects\nvercel api GET \u002Fv13\u002Fdeployments\nvercel api POST \u002Fv9\u002Fprojects\u002F:id\u002Fenv --body '{\"key\":\"MY_VAR\",\"value\":\"val\",\"target\":[\"production\"]}'\n\n# Pipe JSON output to jq\nvercel api GET \u002Fv9\u002Fprojects | jq '.[].name'\n```\n\n### Metrics\n\n```bash\n# Query project metrics (rich text output with sparklines)\nvercel metrics\n\n# Raw values for scripting\nvercel metrics --raw-values\n```\n\n## CI\u002FCD Integration\n\nRequired environment variables for CI:\n```bash\nVERCEL_TOKEN=\u003Cyour-token>\nVERCEL_ORG_ID=\u003Corg-id>\nVERCEL_PROJECT_ID=\u003Cproject-id>\n```\n\n### GitHub Actions Example\n\n```yaml\n- name: Deploy to Vercel\n  run: |\n    vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}\n    vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}\n    vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}\n```\n\n## Global Options\n\n| Flag | Purpose |\n|------|---------|\n| `--token` | Authentication token (for CI) |\n| `--cwd \u003Cdir>` | Working directory |\n| `--debug` \u002F `-d` | Verbose output |\n| `--yes` \u002F `-y` | Skip confirmation prompts |\n| `--scope \u003Cteam>` | Execute as a team |\n\n## Common Workflows\n\n### First-Time Setup\n```bash\nvercel link          # Connect to Vercel project\nvercel env pull      # Get environment variables\nvercel dev           # Start local dev\n```\n\n### Deploy from CI\n```bash\nvercel pull --yes --environment=production --token=$TOKEN\nvercel build --prod --token=$TOKEN\nvercel deploy --prebuilt --prod --token=$TOKEN\n```\n\n### Quick Preview\n```bash\nvercel               # Creates preview deployment, returns URL\n```\n\n## Official Documentation\n\n- [Vercel CLI](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli)\n- [Cache Management](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli\u002Fcache)\n- [MCP Integration](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli\u002Fmcp)\n- [Deployments](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fdeployments)\n- [REST API](https:\u002F\u002Fvercel.com\u002Fdocs\u002Frest-api\u002Freference)\n- [GitHub: Vercel CLI](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel)\n","# Vercel CLI\n\nYou are an expert in the Vercel CLI v50.28.0 (`vercel` or `vc`). The CLI is the primary way to manage Vercel projects from the terminal.\n\n## Installation\n\n```bash\nnpm i -g vercel\n```\n\n## Login\n\nThe CLI uses an **OAuth 2.0 Device Flow** for authentication.\n\n```bash\nvercel login\n```\n\n> **Deprecation notice**: Email-based login (`vercel login your@email.com`) and the flags `--github`, `--gitlab`, `--bitbucket`, `--oob` were removed February 26, 2026. The `team` method (SAML-based login) remains supported until June 1, 2026, then will also be removed.\n\n## Core Commands\n\n### Deployment\n\n```bash\n# Preview deployment (from project root)\nvercel\n\n# Production deployment\nvercel --prod\n\n# Build locally, deploy build output only\nvercel build\nvercel deploy --prebuilt\n\n# Build for production (uses production env vars)\nvercel build --prod\nvercel deploy --prebuilt --prod\n\n# Force a new deployment (skip cache)\nvercel --force\n\n# Promote a preview deployment to production\nvercel promote \u003Cdeployment-url>\n\n# Rollback to previous production deployment\nvercel rollback\n```\n\n### Development\n\n```bash\n# Start local dev server with Vercel features\nvercel dev\n\n# Link current directory to a Vercel project\nvercel link\n\n# Deterministic non-interactive link (recommended for bootstrap\u002Fautomation)\nvercel link --yes --project \u003Cname-or-id> --scope \u003Cteam>\n\n# Pull environment variables and project settings\nvercel pull\n\n# Pull specific environment\nvercel pull --environment=production\n\n# Open linked project in the Vercel Dashboard\nvercel open\n```\n\n### Deterministic Project Linking (Recommended)\n\nPrefer explicit non-interactive linking for bootstrap and automation:\n\n```bash\nvercel link --yes --project \u003Cname-or-id> --scope \u003Cteam>\n```\n\nThis is more reliable than interactive prompt-driven linking, which can pick the wrong project or team in multi-account setups. If there is any ambiguity, run `vercel open` to confirm the dashboard project, then relink with explicit `--project` and `--scope`.\n\n### Environment Variables\n\n```bash\n# List all environment variables\nvercel env ls\n\n# Add an environment variable\nvercel env add MY_VAR\n\n# Add for specific environments\nvercel env add MY_VAR production\nvercel env add MY_VAR preview development\n\n# Add branch-scoped variable\nvercel env add MY_VAR preview --branch=feature-x\n\n# Add sensitive (write-only) variable\nvercel env add MY_SECRET --sensitive\n\n# Remove an environment variable\nvercel env rm MY_VAR\n\n# Pull all env vars to .env.local\nvercel env pull\nvercel env pull .env.production.local --environment=production\n```\n\n### Logs & Inspection\n\nThe `vercel logs` command (rebuilt February 2026) supports **historical log querying** and uses **git context by default** — it automatically scopes logs to your current repository when run from a project directory.\n\n```bash\n# View runtime\u002Ffunction logs (real-time)\nvercel logs \u003Cdeployment-url>\n\n# Follow logs in real-time (streaming mode)\nvercel logs \u003Cdeployment-url> --follow\n\n# Query historical logs (no longer limited to live-only)\nvercel logs --since 24h\nvercel logs --since 7d\n\n# Filter by time range\nvercel logs \u003Cdeployment-url> --since 1h\nvercel logs \u003Cdeployment-url> --since 30m\n\n# Filter by log level\nvercel logs \u003Cdeployment-url> --level error\nvercel logs \u003Cdeployment-url> --level warning\n\n# Filter by deployment ID, request ID, or arbitrary string\nvercel logs --deployment-id dpl_xxxxx\nvercel logs --request-id req_xxxxx\nvercel logs --query \"TypeError\"\n\n# Output as JSON (for piping to jq or other tools)\nvercel logs \u003Cdeployment-url> --json\n\n# Combine filters: stream errors from the last hour as JSON\nvercel logs \u003Cdeployment-url> --follow --since 1h --level error --json\n\n# Inspect a deployment (build details, metadata, function list)\nvercel inspect \u003Cdeployment-url>\n\n# List recent deployments\nvercel ls\n```\n\n> **Note:** `vercel logs` shows runtime request logs only. For build output, use\n> `vercel inspect \u003Cdeployment-url>` or view build logs at `https:\u002F\u002Fvercel.com\u002F{team}\u002F{project}\u002Fdeployments` → select deployment → **Build Logs**.\n>\n> **Drains and advanced observability:** Log drains, trace export, and analytics data forwarding are\n> configured via the Vercel Dashboard at `https:\u002F\u002Fvercel.com\u002Fdashboard\u002F{team}\u002F~\u002Fsettings\u002Flog-drains` or REST API (`\u002Fv1\u002Fdrains`), not the CLI. See `⤳ skill: observability`\n> for drain setup, payload schemas, and signature verification.\n\n### Domains\n\n```bash\n# List domains\nvercel domains ls\n\n# Add a domain to a project\nvercel domains add example.com\n\n# Remove a domain\nvercel domains rm example.com\n```\n\n### DNS\n\n```bash\n# List DNS records\nvercel dns ls example.com\n\n# Add a DNS record\nvercel dns add example.com @ A 1.2.3.4\n```\n\n### Teams\n\n```bash\n# List teams\nvercel teams ls\n\n# Switch to a team\nvercel teams switch my-team\n```\n\n### Cache Management\n\n```bash\n# Purge all cache (CDN + Data cache) for current project\nvercel cache purge\n\n# Purge only CDN cache\nvercel cache purge --type cdn\n\n# Purge only Data cache\nvercel cache purge --type data\n\n# Purge without confirmation prompt\nvercel cache purge --yes\n\n# Invalidate by tag (stale-while-revalidate)\nvercel cache invalidate --tag blog-posts\n\n# Invalidate multiple tags\nvercel cache invalidate --tag blog-posts,user-profiles,homepage\n\n# Hard delete by tag (blocks until revalidated — use with caution)\nvercel cache dangerously-delete --tag blog-posts\n\n# Hard delete with revalidation deadline (deletes only if not accessed within N seconds)\nvercel cache dangerously-delete --tag blog-posts --revalidation-deadline-seconds 3600\n\n# Invalidate cached image transformations by source path\nvercel cache invalidate --srcimg \u002Fapi\u002Favatar\u002F1\n\n# Hard delete cached image transformations\nvercel cache dangerously-delete --srcimg \u002Fapi\u002Favatar\u002F1\n```\n\n**Key distinction:** `invalidate` serves STALE and revalidates in the background. `dangerously-delete` serves MISS and blocks while revalidating. Prefer `invalidate` unless you need immediate freshness.\n\n**Note:** `--tag` and `--srcimg` cannot be used together.\n\n### MCP Server Integration\n\n```bash\n# Initialize global MCP client configuration for your Vercel account\nvercel mcp\n\n# Set up project-specific MCP access for the linked project\nvercel mcp --project\n```\n\nThe `vercel mcp` command links your local MCP client configuration to a Vercel Project. It generates connection details so AI agents and tools can call your MCP endpoints deployed on Vercel securely.\n\n### Programmatic Configuration (`@vercel\u002Fconfig`)\n\n```bash\n# Compile vercel.ts to JSON (stdout)\nnpx @vercel\u002Fconfig compile\n\n# Validate configuration and show summary\nnpx @vercel\u002Fconfig validate\n\n# Generate vercel.json locally for development\nnpx @vercel\u002Fconfig generate\n```\n\nUse `vercel.ts` (or `.js`, `.mjs`, `.cjs`, `.mts`) instead of `vercel.json` for type-safe, dynamic project configuration. Only one config file per project — `vercel.json` or `vercel.ts`, not both.\n\n> **Note:** Legacy `now.json` support will be removed on March 31, 2026. Rename to `vercel.json` (no content changes needed).\n\n### Marketplace Integrations\n\nAuto-provisioning is the default for `vercel integration add` — the CLI automatically creates resources and sets environment variables without extra prompts.\n\n```bash\n# List installed integrations\nvercel integration list\n\n# Add an integration (auto-provisions env vars by default)\nvercel integration add neon\n\n# Open an integration's dashboard\nvercel integration open neon\n\n# Remove an integration\nvercel integration remove neon\n```\n\n#### Agent-Optimized: `discover` and `guide`\n\nAI agents can autonomously discover, install, and retrieve setup instructions for Marketplace integrations (added March 2026):\n\n```bash\n# Search the integration catalog (returns JSON for automation)\nvercel integration discover --format=json\n\n# Search with a keyword filter\nvercel integration discover database --format=json\n\n# Get agent-friendly setup guide with code snippets\nvercel integration guide neon\n\n# Full workflow: discover → add → guide\nvercel integration discover storage --format=json\nvercel integration add neon\nvercel integration guide neon\n```\n\n- `discover` — Searches the Vercel Marketplace catalog. Use `--format=json` for non-interactive output suitable for scripting and agent pipelines.\n- `guide \u003Cname>` — Returns getting-started documentation in agent-friendly markdown: environment variables, SDK setup, and code snippets.\n- Human-in-the-loop safety: the CLI prompts for developer confirmation when accepting Terms of Service.\n\n> Full subcommands: `discover`, `guide`, `add`, `list` (alias `ls`), `balance`, `open`, `remove`.\n\n### Project-Level Routing (No Redeploy)\n\nCreate and update routing rules — headers, rewrites, redirects — without building a new deployment. Rules take effect instantly.\n\nAvailable via dashboard (CDN tab), API, CLI, and Vercel SDK. Project-level routes run after bulk redirects and before deployment config routes.\n\n### Feature Flags\n\n```bash\n# Create a feature flag\nvercel flags add redesigned-checkout --kind boolean --description \"New checkout flow\"\n\n# List SDK keys\nvercel flags sdk-keys ls\n\n# Enable\u002Fdisable, archive, and manage flags from CLI\nvercel flags --help\n```\n\nSee `⤳ skill: vercel-flags` for full flag configuration and adapter patterns.\n\n### Direct API Access\n\nThe `vercel api` command (added January 2026) gives direct access to the full Vercel REST API from the terminal. Designed for AI agents — call Vercel APIs with no additional configuration.\n\n```bash\n# Call any Vercel REST API endpoint\nvercel api GET \u002Fv9\u002Fprojects\nvercel api GET \u002Fv13\u002Fdeployments\nvercel api POST \u002Fv9\u002Fprojects\u002F:id\u002Fenv --body '{\"key\":\"MY_VAR\",\"value\":\"val\",\"target\":[\"production\"]}'\n\n# Pipe JSON output to jq\nvercel api GET \u002Fv9\u002Fprojects | jq '.[].name'\n```\n\n### Metrics\n\n```bash\n# Query project metrics (rich text output with sparklines)\nvercel metrics\n\n# Raw values for scripting\nvercel metrics --raw-values\n```\n\n## CI\u002FCD Integration\n\nRequired environment variables for CI:\n```bash\nVERCEL_TOKEN=\u003Cyour-token>\nVERCEL_ORG_ID=\u003Corg-id>\nVERCEL_PROJECT_ID=\u003Cproject-id>\n```\n\n### GitHub Actions Example\n\n```yaml\n- name: Deploy to Vercel\n  run: |\n    vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}\n    vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}\n    vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}\n```\n\n## Global Options\n\n| Flag | Purpose |\n|------|---------|\n| `--token` | Authentication token (for CI) |\n| `--cwd \u003Cdir>` | Working directory |\n| `--debug` \u002F `-d` | Verbose output |\n| `--yes` \u002F `-y` | Skip confirmation prompts |\n| `--scope \u003Cteam>` | Execute as a team |\n\n## Common Workflows\n\n### First-Time Setup\n```bash\nvercel link          # Connect to Vercel project\nvercel env pull      # Get environment variables\nvercel dev           # Start local dev\n```\n\n### Deploy from CI\n```bash\nvercel pull --yes --environment=production --token=$TOKEN\nvercel build --prod --token=$TOKEN\nvercel deploy --prebuilt --prod --token=$TOKEN\n```\n\n### Quick Preview\n```bash\nvercel               # Creates preview deployment, returns URL\n```\n\n## Official Documentation\n\n- [Vercel CLI](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli)\n- [Cache Management](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli\u002Fcache)\n- [MCP Integration](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli\u002Fmcp)\n- [Deployments](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fdeployments)\n- [REST API](https:\u002F\u002Fvercel.com\u002Fdocs\u002Frest-api\u002Freference)\n- [GitHub: Vercel CLI](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel)\n",{"name":5,"chainTo":52,"metadata":65,"retrieval":120,"description":7},[53,57,61],{"message":54,"pattern":55,"targetSkill":56},"Cron configuration detected in vercel.json — loading Cron Jobs guidance for schedule syntax, CRON_SECRET verification, and function handler patterns.","\"crons\"\\s*:","cron-jobs",{"message":58,"pattern":59,"targetSkill":60,"skipIfFileContains":55},"Functions configuration detected in vercel.json — loading Vercel Functions guidance for runtime options, streaming, and Fluid Compute.","\"functions\"\\s*:\\s*\\{|\"maxDuration\"\\s*:|\"memory\"\\s*:","vercel-functions",{"message":62,"pattern":63,"targetSkill":64},"Routing rules in vercel.json — loading Routing Middleware guidance for platform-level request interception patterns.","\"redirects\"\\s*:\\s*\\[|\"rewrites\"\\s*:\\s*\\[|\"headers\"\\s*:\\s*\\[","routing-middleware",{"docs":66,"sitemap":68,"priority":69,"bashPatterns":70,"pathPatterns":78,"promptSignals":84},[67],"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli","https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml",4,[71,72,73,74,75,76,77],"^\\s*vercel(?:\\s|$)","^\\s*vc(?:\\s|$)","\\bnpx\\s+vercel\\b","\\bpnpm\\s+dlx\\s+vercel\\b","\\bbunx\\s+vercel\\b","\\byarn\\s+dlx\\s+vercel\\b","\\bnpx\\s+@vercel\u002Fconfig\\b",[79,80,81,82,83],"vercel.json","vercel.ts",".vercel\u002F**",".vercelignore","now.json",{"allOf":85,"anyOf":99,"noneOf":101,"phrases":104,"minScore":119},[86,89,91,92,93,95,97],[87,88],"check","deployment",[87,90],"deploy",[28,45],[28,43],[90,94],"error",[90,96],"failed",[90,98],"stuck",[88,90,28,100],"production",[102,103,34],"terraform","aws deploy",[105,106,107,108,109,110,111,112,113,114,115,116,117,118],"check deployment","check deploy","deployment status","deploy status","vercel logs","deployment logs","deploy logs","vercel inspect","is it deployed","deploy failing","deploy failed","deployment error","check vercel","vercel status",6,{"aliases":121,"intents":126,"entities":131},[122,123,124,125],"vercel command line","vc cli","deploy command","vercel terminal",[127,128,129,130],"deploy from cli","link project","manage domains","view logs from terminal",[132,133,134,135,109],"vercel CLI","vercel deploy","vercel env","vercel link","main","9a4409c8751439c3aeeea2bc3940ba05dc3cd3b5","plugins\u002Fvercel\u002Fskills\u002Fvercel-cli",0,"https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FNagyVikt","https:\u002F\u002Fwebu.hu\u002F","Codex is a tool they said...\r\n\r\nCreator of GitGuardex, CueCards. Tech stack: Next.js · TypeScript · Rust · Linux. ","2026-03-30 02:19:53",{"source":8,"skillName":5,"commands":146,"prompt":156,"zipAvailable":157},[147,150,153],{"tool":148,"command":149},"npx","npx skills add NagyVikt\u002Fcodex-plugins --skill vercel-cli",{"tool":151,"command":152},"bunx","bunx skills add NagyVikt\u002Fcodex-plugins --skill vercel-cli",{"tool":154,"command":155},"pnpm","pnpm dlx skills add NagyVikt\u002Fcodex-plugins --skill vercel-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-cli\u002FSKILL.md",true,[],[160,196,227,248,275,297],{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":178,"publishedAt":47},"01M6K1ZEN8P9R2S6NPNJNJ8JVH","workflow","Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[166,169,170,175],{"categoryNo":167,"categoryName":168,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":171,"categoryName":172,"taxonomyType":173,"taxonomyTypeDesc":174},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":176,"categoryName":177,"taxonomyType":173,"taxonomyTypeDesc":174},"01JBSEEDCAT000000000000038","人力资源",[162,179,180,181,44,43,182,183,184,185,186,187,188,189,190,191,192,193,194,195],"workflows","create","run","start","why","loop","wait for","branch","auto","log","conversation","human","lib","condition","rendering","retries","sleep",{"skillNo":197,"name":198,"nameZh":6,"description":199,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":200,"categories":201,"keywords":212,"publishedAt":47},"01M6K1Z71NWFSPHK2VJJ73MVSY","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[202,205,206,209],{"categoryNo":203,"categoryName":204,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":167,"categoryName":168,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":207,"categoryName":208,"taxonomyType":173,"taxonomyTypeDesc":174},"01JBSEEDCAT000000000000031","产品经理",{"categoryNo":210,"categoryName":211,"taxonomyType":173,"taxonomyTypeDesc":174},"01JBSEEDCAT000000000000033","数据分析师",[198,213,44,214,215,41,186,216,217,218,219,38,220,221,222,223,94,224,225,226],"auth","routing middleware","api","user story","full stack","jest","local","end","app","false","unit","middleware","loading","unit test",{"skillNo":228,"name":229,"nameZh":6,"description":230,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":231,"categories":232,"keywords":234,"publishedAt":47},"01M6K1YPRYJS3BQEDP8HKBHPEJ","vercel-storage","Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[233],{"categoryNo":167,"categoryName":168,"taxonomyType":21,"taxonomyTypeDesc":22},[235,236,28,46,181,237,238,187,239,240,30,241,242,243,221,191,244,245,246,247],"storage","vercel storage","supabase","migrate","router","clerk","prisma","connection pooling","neon","turso","upstash","URL","auth0",{"skillNo":249,"name":250,"nameZh":6,"description":251,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":252,"categories":253,"keywords":259,"publishedAt":47},"01M6K1YFEP0GPPGMQ3D0FPTS27","vercel-services","Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[254,257,258],{"categoryNo":255,"categoryName":256,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",{"categoryNo":167,"categoryName":168,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[260,261,28,262,263,264,265,266,267,268,269,136,270,271,38,272,221,273,94,274],"vercel services","services","frontend","docker compose","SET","configure","monorepo","go api","fastapi","up","aws lambda","go backend","get","apps","python backend",{"skillNo":276,"name":277,"nameZh":6,"description":278,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":279,"categories":280,"keywords":281,"publishedAt":47},"01M6K1Y8S3CRD43DPKX0PK1MTT","vercel-sandbox","Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[282,283,28,284,285,180,181,286,287,288,289,290,291,292,293,294,225,295,277,296],"sandbox","vercel sandbox","safe","ai agents","code","ai sdk","Code Generation","playground","generated","spawn","install","runner","io","child","student",{"skillNo":298,"name":299,"nameZh":6,"description":300,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":301,"categories":302,"keywords":304,"publishedAt":47},"01M6K1Y1J8S7AN97H75SHBGF7J","vercel-queues","Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60\u002F1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-queues\u002FSKILL.md",[303],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[305,28,162,179,44,306,264,215,265,269,307,308,309,310,221,191,311,194,225,312],"vercel queues","beta","message","delivery","across","worker","processing","at"]