Repository navigation
[skills] Sync env-vars with current docs - #473
Open
vercel-gh-bot-4[bot] wants to merge 1 commit into
Open
vercel-gh-bot-4[bot] wants to merge 1 commit into
vercel-gh-bot-4[bot] wants to merge 1 commit into
Conversation
<!-- vercel-plugin-drift-agent -->
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vercel env add/ls/rm/updateexample 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--environmentand--git-branchoptions ofvercel env add,list,remove, andupdateneed Vercel CLI 64.6.0 or later." The CLI code agrees:packages/cli/src/util/env/env-target.tsin 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, andenv updatetake--environmentand--git-branch; the bare environment and Git branch arguments are deprecated."vercel env update MY_SECRET production < ./secret.txt" has no--yes.env updatealways asks for confirmation unless--yesis 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--yesoption 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.mdwas regenerated from the skill.Test updates
tests/auth-skill.test.ts: the pinned literalsvercel env add MY_SECRET production < ./secret.txtandvercel env update MY_SECRET productionare nowvercel env add MY_SECRET --environment production < ./secret.txtandvercel 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.mdandcommands/bootstrap.md(vercel env add AUTH_SECRET production,preview)hooks/src/pretooluse-skill-inject.mtsandhooks/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.mdandskills/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
tests/fixtures/pattern-fixtures.json, which are bash-pattern matching inputs.AI_GATEWAY_API_KEYtakes priority over OIDC). They match https://vercel.com/docs/ai-gateway/authentication-and-byok/oidc.env pullmerge behavior and the Config/Secret defaults. Both match https://vercel.com/docs/cli/env.Opened automatically by the vercel-plugin drift agent. Review before merge.