Return the correct exit code in the Vercel command#13780
Merged
Conversation
🦋 Changeset detectedLatest commit: 063bcab 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 |
0bf7872 to
5ef84fa
Compare
5ef84fa to
fe80bd7
Compare
fe80bd7 to
de5b5ad
Compare
de5b5ad to
063bcab
Compare
tknickman
approved these changes
Aug 18, 2025
Merged
ijjk
pushed a commit
that referenced
this pull request
Aug 18, 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 ## vercel@46.0.2 ### Patch Changes - feat(cli): add SSO re-authorization support to --future ([#13771](#13771)) - Return the correct exit code in the Vercel command ([#13780](#13780)) - Updated dependencies \[[`fcf7791f1dae2967c09c09b78aedf00be5d25303`](fcf7791), [`b9e399c69ebeb71d9150e8aa994294b0c2be8c9f`](b9e399c)]: - @vercel/next@4.11.3 ## @vercel/next@4.11.3 ### Patch Changes - Handle building for app router without internal pages entries ([#13704](#13704)) - Add action metadata routes ([#13775](#13775)) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ergunsh
added a commit
that referenced
this pull request
Feb 26, 2026
Return exit code 0 instead of 2 when --help flag is used, aligning with standard CLI conventions (git, npm, docker) and the root `vercel --help` behavior. This follows the same fix applied in #13780 and #14834 for other commands. <!-- VADE_RISK_START --> > [!NOTE] > Low Risk Change > > This PR changes the exit code from 2 to 0 when --help flag is used for the metrics CLI command, which is a standard CLI convention fix with no security implications. > > - Exit code changed from 2 to 0 for --help flag in three places > - Test updated to expect exit code 0 instead of 2 > - Changeset added documenting the patch > > <sup>Risk assessment for [commit 0fc2575](https://github.com/vercel/vercel/commit/0fc2575eff6fa3e4d02fa897b9a4fa8035d1a384).</sup> <!-- VADE_RISK_END --> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.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.
Few Vercel commands exits with a status code of 2, making it look like something is wrong.