Skip to content

[skills] Sync env-vars with current docs - #473

Open
vercel-gh-bot-4[bot] wants to merge 1 commit into
mainfrom
eve-drift/env-vars
Open

vercel-gh-bot-4[bot] wants to merge 1 commit into
mainfrom
eve-drift/env-vars

Conversation

@vercel-gh-bot-4

Copy link
Copy Markdown
Contributor
  • Stale: every vercel env add/ls/rm/update example passes the environment and Git branch as bare arguments, e.g. "vercel env add MY_SECRET production < ./secret.txt", "vercel env ls production", "vercel env rm MY_SECRET production", "vercel env add DATABASE_URL preview --git-branch=staging". Correction: use --environment <env> (with --git-branch), and add a version note that these flags need Vercel CLI 64.6.0+ while the bare form still works with a deprecation warning. Source: https://vercel.com/docs/cli/env (last_updated 2026-08-20): "The --environment and --git-branch options of vercel env add, list, remove, and update need Vercel CLI 64.6.0 or later." The CLI code agrees: packages/cli/src/util/env/env-target.ts in vercel/vercel says "The bare form keeps working with a deprecation warning", and the 64.6.0 CHANGELOG entry reads "env add, env list, env remove, and env update take --environment and --git-branch; the bare environment and Git branch arguments are deprecated."
  • Stale: "vercel env update MY_SECRET production < ./secret.txt" has no --yes. env update always asks for confirmation unless --yes is passed (packages/cli/src/commands/env/update.ts, if (!opts['--yes']) → confirm('Update this Environment Variable?')), and a value redirected from a file can't answer that prompt. Correction: vercel env update MY_SECRET --environment production --yes < ./secret.txt. Source: https://vercel.com/docs/cli/env (last_updated 2026-08-20): "The --yes option skips the update confirmation, which piped input cannot answer."

Verification

run_plugin_checks: build, typecheck, validate, and test all pass (1364 tests pass, 0 fail). commands/env.md was regenerated from the skill.

Test updates

tests/auth-skill.test.ts: the pinned literals vercel env add MY_SECRET production < ./secret.txt and vercel env update MY_SECRET production are now vercel env add MY_SECRET --environment production < ./secret.txt and vercel env update MY_SECRET --environment production.

Same fact elsewhere (not changed)

These files also use the deprecated bare environment argument, with different command text, so they were not touched in this PR:

  • skills/bootstrap/SKILL.md and commands/bootstrap.md (vercel env add AUTH_SECRET production,preview)
  • hooks/src/pretooluse-skill-inject.mts and hooks/pretooluse-skill-inject.mjs (vercel env add NAME production, vercel env update NAME production)
  • skills/vercel-storage/SKILL.md (vercel env add DATABASE_URL_POOLED production)
  • skills/vercel-cli/upstream/references/environment-variables.md and skills/vercel-cli/references/environment-variables.md (vercel env ls production --format json, among others). This is an upstream copy, so the fix has to come through a resync.

Not changed

Opened automatically by the vercel-plugin drift agent. Review before merge.

<!-- vercel-plugin-drift-agent -->

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants