Skip to content

[CLI] adding auto updating feature#16347

Open
Melkeydev wants to merge 2 commits into
mainfrom
melkey/adding-auto-update-opt-in
Open

[CLI] adding auto updating feature#16347
Melkeydev wants to merge 2 commits into
mainfrom
melkey/adding-auto-update-opt-in

Conversation

@Melkeydev
Copy link
Copy Markdown
Contributor

• ## Summary

Adds opt-in automatic CLI updates.

  • Adds vercel upgrade --enable-auto / --disable-auto
  • Persists preference in global config as updates.auto
  • Prompts users to enable auto-updates after a successful manual upgrade
  • Auto-updates only after successful interactive global CLI runs

@Melkeydev Melkeydev requested review from a team as code owners May 16, 2026 04:49
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 16, 2026

🦋 Changeset detected

Latest commit: 3363c0b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/cli-config Patch
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 16, 2026

🧪 Unit Test Strategy

Comparing: 39850ef3363c0b (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 2 (5%)
  1. @vercel/cli-config
  2. vercel
Unaffected packages - 42 (95%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/cli-exec
  7. @vercel/client
  8. @vercel/config
  9. @vercel/detect-agent
  10. @vercel/edge
  11. @vercel/elysia
  12. @vercel/error-utils
  13. @vercel/express
  14. @vercel/fastify
  15. @vercel/firewall
  16. @vercel/frameworks
  17. @vercel/fs-detectors
  18. @vercel/functions
  19. @vercel/gatsby-plugin-vercel-analytics
  20. @vercel/gatsby-plugin-vercel-builder
  21. @vercel/go
  22. @vercel/h3
  23. @vercel/hono
  24. @vercel/hydrogen
  25. @vercel/koa
  26. @vercel/nestjs
  27. @vercel/next
  28. @vercel/node
  29. @vercel/oidc
  30. @vercel/oidc-aws-credentials-provider
  31. @vercel/python
  32. @vercel/python-analysis
  33. @vercel/redwood
  34. @vercel/related-projects
  35. @vercel/remix-builder
  36. @vercel/routing-utils
  37. @vercel/ruby
  38. @vercel/rust
  39. @vercel/static-build
  40. @vercel/static-config
  41. @vercel/vc-native
  42. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Running in parallel in this workflow
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

Comment thread packages/cli/test/unit/util/updates.test.ts
@github-actions
Copy link
Copy Markdown
Contributor

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-x2s6mcd0c.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-x2s6mcd0c.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A vercel-runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-x2s6mcd0c.vercel.sh/tarballs/vercel_runtime-0.14.0.dev1778962004+3363c0b-py3-none-any.whl"

Python Workers Wheel

A vercel-workers wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_WORKERS_PYTHON="vercel-workers @ https://vercel-x2s6mcd0c.vercel.sh/tarballs/vercel_workers-0.1.0.dev1778962004+3363c0b-py3-none-any.whl"

This comment is automatically generated

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.

1 participant