Skip to content

[CLI] feat: non-interactive, allow scope arg - #15077

Merged
brookemosby merged 2 commits into
mainfrom
brooke/scopeLink
Feb 17, 2026
Merged

brookemosby merged 2 commits into
mainfrom
brooke/scopeLink

Conversation

@brookemosby

@brookemosby brookemosby commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

Note

Low Risk Change

This PR adds a new code path in non-interactive mode that allows scope/team selection via argv parsing, which is a feature addition that still validates against existing choices rather than bypassing authorization.

  • Adds getScopeOrTeamFromArgv helper to parse --scope/--team flags from argv
  • Extends non-interactive flow to match explicit scope against valid choices list
  • Includes unit test for new --scope flag behavior

Risk assessment for commit fcd789e.

@brookemosby
brookemosby requested review from a team as code owners February 17, 2026 15:42
@changeset-bot

changeset-bot Bot commented Feb 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fcd789e

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

This PR includes changesets to release 1 package
Name Type
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

📦 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-i5r4sl648.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-i5r4sl648.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A Python 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-i5r4sl648.vercel.sh/tarballs/vercel_runtime-0.5.0.dev1771342922+fcd789e-py3-none-any.whl"

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Unit Test Strategy

Comparing: ab3e46f → fcd789e (view diff)

Strategy: Affected packages only

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

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

Results

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

This comment is automatically generated based on the affected testing strategy

@brookemosby
brookemosby enabled auto-merge (squash) February 17, 2026 16:08
@brookemosby
brookemosby merged commit fe80cef into main Feb 17, 2026
223 of 226 checks passed
@brookemosby
brookemosby deleted the brooke/scopeLink branch February 17, 2026 17:08
mehulkar pushed a commit that referenced this pull request Feb 17, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## [email protected]

### Patch Changes

- Add more precise errors and debug messages for auth issues
([#14992](#14992))

- Add tracing when installing builders
([#15071](#15071))

- Use namespaced vc.builder span attributes (builder.name,
builder.version, builder.dynamicallyInstalled) so they appear correctly
in Datadog and don't conflict with reserved `version` tag
([#15078](#15078))

- non-interactive mode should allow scope argument
([#15077](#15077))


Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — fcd789eb Deployed Feb 17, 2026 by vercel[bot]
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.

3 participants