ECO-445: add vc integration list command to cli#12251
Merged
kodiakhq[bot] merged 18 commits intomainfrom Oct 10, 2024
Merged
Conversation
added 5 commits
October 4, 2024 16:00
🦋 Changeset detectedLatest commit: 8ed0d38 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 |
vc integration list command to cli
Author
|
Note: this PR touches files shared with #12233, and will require a merge conflict resolution between the two. |
erikareads
suggested changes
Oct 8, 2024
erikareads
previously approved these changes
Oct 8, 2024
trek
reviewed
Oct 8, 2024
trek
previously approved these changes
Oct 8, 2024
dvoytenko
requested changes
Oct 8, 2024
erikareads
previously approved these changes
Oct 8, 2024
trek
previously approved these changes
Oct 9, 2024
dvoytenko
previously approved these changes
Oct 9, 2024
erikareads
previously approved these changes
Oct 9, 2024
1222a06
erikareads
approved these changes
Oct 9, 2024
Merged
onsclom
pushed a commit
that referenced
this pull request
Oct 10, 2024
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 the packages will be published to npm automatically. 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] ### Minor Changes - Enable viewing a list of team's Marketplace resources via the `vc integration list` command (with the alternative alias `vc integration ls` and basic filtering `--current-project` and `--integration [integration-slug]`) ([#12251](#12251)) ### Patch Changes - Updated dependencies \[[`d01c6b98d6f5f2718b69edec71b4aec40822bfe6`](d01c6b9), [`3a2c2529c642cc2efc11d08a18f2da2ff423b15f`](3a2c252)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Improve parsing of `turbo.json` ([#12266](#12266)) - Fix corepack `packageManager` detection on monorepos ([#12258](#12258)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`d01c6b98d6f5f2718b69edec71b4aec40822bfe6`](d01c6b9), [`3a2c2529c642cc2efc11d08a18f2da2ff423b15f`](3a2c252)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`d01c6b98d6f5f2718b69edec71b4aec40822bfe6`](d01c6b9), [`3a2c2529c642cc2efc11d08a18f2da2ff423b15f`](3a2c252)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](#12258)) ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](#12258)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`d01c6b98d6f5f2718b69edec71b4aec40822bfe6`](d01c6b9), [`3a2c2529c642cc2efc11d08a18f2da2ff423b15f`](3a2c252)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](#12258)) ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](#12258)) ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](#12258)) - Updated dependencies \[]: - @vercel/[email protected] ## @vercel-internals/[email protected] ### Patch Changes - Updated dependencies \[[`d01c6b98d6f5f2718b69edec71b4aec40822bfe6`](d01c6b9), [`3a2c2529c642cc2efc11d08a18f2da2ff423b15f`](3a2c252)]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kodiakhq bot
pushed a commit
that referenced
this pull request
Oct 30, 2024
## Summary This PR adds a new sub-command to integration: `remove` (also available as `rm`) which allows a user to uninstall a marketplace integration from the current team. This PR also adds a new command `vc integration-resource` with sub-commands `disconnect` and `remove` (also available as `rm`), which allows a user to unlink a project from a (marketplace integration) resource and to delete a (marketplace integration) resource. ## Background This change is related to #12233 and #12251. As we continue to try and improve the developer experience of interacting with the marketplace via the CLI, it's important that we offer the basic general CRUD activities seen in CLI tools of `add`, `list`, and `remove` (as well as `open` for how users perform update actions on the resources day-to-day). This PR adds the `remove` functionality to finish off the set of the basic CRUD operations. Original designs for the CRUD commands lacked detail on a `remove` command. This PR introduces the idea of removing an integration from a team, removing a resource from a team, and removing resources from projects. Since this is a lot of different destructive actions, we thought it best to break apart into multiple commands instead of overloading a single `remove` command (as this PR originally proposed). This way the commands have clear, singular uses, and it's more difficult to accidentally make unintended destructive changes. ## How to test Build and run locally (or use `pnpm dev` instead of `vc` when in the `packages/cli` folder). You'll also need marketplace integrations installed on a team, and resources for said integrations. ``` vc integration remove <integration> -- vc integration-resource remove <resource> [--disconnect-all] -- vc integration-resource disconnect <resource> vc integration-resource disconnect <resource> <project> vc integration-resource disconnect <resource> --all ```
QuietCraftsmanship
pushed a commit
to QuietCraftsmanship/Vercel
that referenced
this pull request
Jul 6, 2025
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 the packages will be published to npm automatically. 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] ### Minor Changes - Enable viewing a list of team's Marketplace resources via the `vc integration list` command (with the alternative alias `vc integration ls` and basic filtering `--current-project` and `--integration [integration-slug]`) ([#12251](vercel/vercel#12251)) ### Patch Changes - Updated dependencies \[[`a82a8af02a2c464ec30a00764b09791622268cd7`](vercel/vercel@a82a8af), [`38cf083ac6fc9a82fd886e76bc2621ed9d89239e`](vercel/vercel@38cf083)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Improve parsing of `turbo.json` ([#12266](vercel/vercel#12266)) - Fix corepack `packageManager` detection on monorepos ([#12258](vercel/vercel#12258)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`a82a8af02a2c464ec30a00764b09791622268cd7`](vercel/vercel@a82a8af), [`38cf083ac6fc9a82fd886e76bc2621ed9d89239e`](vercel/vercel@38cf083)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`a82a8af02a2c464ec30a00764b09791622268cd7`](vercel/vercel@a82a8af), [`38cf083ac6fc9a82fd886e76bc2621ed9d89239e`](vercel/vercel@38cf083)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](vercel/vercel#12258)) ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](vercel/vercel#12258)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`a82a8af02a2c464ec30a00764b09791622268cd7`](vercel/vercel@a82a8af), [`38cf083ac6fc9a82fd886e76bc2621ed9d89239e`](vercel/vercel@38cf083)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](vercel/vercel#12258)) ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](vercel/vercel#12258)) ## @vercel/[email protected] ### Patch Changes - Fix corepack `packageManager` detection on monorepos ([#12258](vercel/vercel#12258)) - Updated dependencies \[]: - @vercel/[email protected] ## @vercel-internals/[email protected] ### Patch Changes - Updated dependencies \[[`a82a8af02a2c464ec30a00764b09791622268cd7`](vercel/vercel@a82a8af), [`38cf083ac6fc9a82fd886e76bc2621ed9d89239e`](vercel/vercel@38cf083)]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.
Summary
This PR adds a new sub-command to integration
list(also available asls) which allows a user to view all the Marketplace resources associated with their current team. It provides the resource's name, its current status, the Product name, the Integration's slug, and the connected projects:Background
This change is related to #12233. As we continue to try and improve the developer experience of interacting with the marketplace via the CLI, it's important that we offer the basic general CRUD activities seen in CLI tools of
add,list, andremove(as well asopenfor how users perform update actions on the resources day-to-day). This PR adds thelistfunctionality to compliment the already existingadd, the soon-to-comeopen, and the comingremove.Original designs for this subcommand only included the Name, Status, Product, and Integration Slug, but I also included the projects as well as the ability to filter on Integration & on the current project in order to make the list a little easier to use and interact with. A user probably only needs to care about their current project's resources (thus the
--current-project/-cflag), but if they're trying to filter down on the full list,--integrationalso helps narrow down the list when debugging.Other options that may be helpful & would make good future additions include
--status [status]and--project [project-name].How to test
Build and run locally (or use
pnpm devinstead ofvcwhen in thepackages/clifolder). Note: for--current-projectflag you need a project linked, so if you're usingpnpm devto test the command then you'll need to execute it directly. For this, I took the debugging output of the command being called usingpnpm devto find what it was calling, and used the full path call of[ts-node from node_modules] [full path]/vercel/packages/cli/src/index.ts integration list --current-projectto test it in a different folder where I had a linked vercel project ready to test.