[cli] Add --format=json flag integration list#15007
Conversation
🦋 Changeset detectedLatest commit: b50125a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
📦 CLI Tarball ReadyThe Vercel CLI tarball for this PR is now available! Quick TestYou can test this PR's CLI directly by running: npx https://vercel-dibmurrkc.vercel.sh/tarballs/vercel.tgz --helpUse in vercel.jsonTo use this CLI version in your project builds, add to your {
"build": {
"env": {
"VERCEL_CLI_VERSION": "vercel@https://vercel-dibmurrkc.vercel.sh/tarballs/vercel.tgz"
}
}
} |
🧪 Unit Test StrategyComparing: Strategy: Affected packages only ✅ Only testing packages that have been modified or depend on modified packages. Affected packages - 1 (3%)
Unaffected packages - 39 (98%)
Results
This comment is automatically generated based on the affected testing strategy |
2ddf638 to
e6eacd4
Compare
When scoped to a project, the table header now shows which project is
being used as a filter. Also adds --json/--format support following the
same pattern as `integration discover`, outputting a `{ resources }` object
with projects as a proper array.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e6eacd4 to
b3bfb98
Compare
|
Hm there doesn't seem to be a very clean way to show both project names and ids when we want to show them in a single list. Either I could have
When visiting a resource page on dashboard, we do have the
Wow good eye 👀 I just saw their product name is configured as |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… in JSON output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 ## vercel@50.17.0 ### Minor Changes - Install builder packages on demand ([#15023](#15023)) - Display functions exceeding 250MB uncompressed size limit with total size and breakdown of largest dependencies (requires environment variable VERCEL_ANALYZE_BUILD_OUTPUT=1). ([#14067](#14067)) ### Patch Changes - Add `--format=json` option to `vercel integration list` and show project name in table header when results are scoped to a project ([#15007](#15007)) - Fix builder import resolution from pre-installed depenencies ([#15041](#15041)) - Services routing improvements: ([#15018](#15018)) - Fix route ownership scoping so parent service catch-alls (e.g. Vite SPA fallback) don't capture sibling service prefixes - Move shared ownership-guard helpers (`getOwnershipGuard`, `scopeRouteSourceToOwnership`) to `@vercel/routing-utils` - Place runtime service function outputs under internal `/_svc/<service>/index` namespace to prevent filesystem path leakage - Block `/_svc` as a reserved routePrefix in service validation - Scope all builder-emitted routes (not just route-owning builders) to their service ownership before merging - Updated dependencies \[]: - @vercel/static-build@2.8.37 - @vercel/build-utils@13.4.0 - @vercel/next@4.15.28 - @vercel/redwood@2.4.9 - @vercel/rust@1.0.5 ## @vercel/client@17.2.41 ### Patch Changes - Updated dependencies \[[`3cd0b559f1815fdb13f7aa05114bae2b0b0b0e68`](3cd0b55)]: - @vercel/routing-utils@5.3.3 - @vercel/build-utils@13.4.0 ## @vercel/fs-detectors@5.8.6 ### Patch Changes - Services routing improvements: ([#15018](#15018)) - Fix route ownership scoping so parent service catch-alls (e.g. Vite SPA fallback) don't capture sibling service prefixes - Move shared ownership-guard helpers (`getOwnershipGuard`, `scopeRouteSourceToOwnership`) to `@vercel/routing-utils` - Place runtime service function outputs under internal `/_svc/<service>/index` namespace to prevent filesystem path leakage - Block `/_svc` as a reserved routePrefix in service validation - Scope all builder-emitted routes (not just route-owning builders) to their service ownership before merging - Updated dependencies \[[`3cd0b559f1815fdb13f7aa05114bae2b0b0b0e68`](3cd0b55)]: - @vercel/routing-utils@5.3.3 - @vercel/frameworks@3.17.1 ## @vercel/routing-utils@5.3.3 ### Patch Changes - Services routing improvements: ([#15018](#15018)) - Fix route ownership scoping so parent service catch-alls (e.g. Vite SPA fallback) don't capture sibling service prefixes - Move shared ownership-guard helpers (`getOwnershipGuard`, `scopeRouteSourceToOwnership`) to `@vercel/routing-utils` - Place runtime service function outputs under internal `/_svc/<service>/index` namespace to prevent filesystem path leakage - Block `/_svc` as a reserved routePrefix in service validation - Scope all builder-emitted routes (not just route-owning builders) to their service ownership before merging <!-- VADE_RISK_START --> > [!NOTE] > Low Risk Change > > This PR is an automated Changesets release that only updates version numbers in package.json files and adds changelog entries - no source code changes are present. > > - Deletes changeset markdown files after consuming them > - Bumps version numbers in 4 package.json files > - Adds changelog entries documenting previous changes > > <sup>Risk assessment for [commit 9186d29](https://github.com/vercel/vercel/commit/9186d293adee9d555b8582f5c1d0cec87689acf1).</sup> <!-- VADE_RISK_END --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

Summary
--format=jsonoption tovercel integration listIntegration resources for project <name> in <team>:instead of the genericIntegrations in <team>:, making it clear which project is filtering results{ "resources": [...] }to stdout withprojectsas a proper arrayTest plan
--allflag tests verify header remains team-scoped--format=jsonreturns structured JSON for linked project--format=json --allreturns all resources as JSON--formatoption tracked in telemetrynpx vitest run packages/cli/test/unit/commands/integration/list.test.tsExamples
🤖 Generated with Claude Code
Note
Low Risk Change
This PR adds a new --format=json output option to a CLI list command with proper validation, updated header messaging, and comprehensive tests - no security, auth, or data integrity changes.
integration listcommand with JSON output to stdoutRisk assessment for commit b50125a.