print vercel CLI version on VERCEL=1#15359
Conversation
🦋 Changeset detectedLatest commit: 8096adf 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 |
Add changeset to print Vercel CLI version when VERCEL=1.
📦 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-nkx6kkibl.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-nkx6kkibl.vercel.sh/tarballs/vercel.tgz"
}
}
}Python Runtime WheelA Python Workers WheelA |
🧪 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 |
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@50.27.0 ### Minor Changes - Add `vercel agent init` command that generates an AGENTS.md file with Vercel deployment best practices ([#15356](#15356)) ### Patch Changes - print vercel CLI version on VERCEL=1 ([#15359](#15359)) - Updated dependencies \[[`62700e88d527e3a3be2b317b805f778f3bf97f86`](62700e8)]: - @vercel/next@4.15.40 ## @vercel/next@4.15.40 ### Patch Changes - vary fallback `allowQuery` by params for partial fallback shells ([#15338](#15338)) <!-- VADE_RISK_START --> > [!NOTE] > Low Risk Change > > This PR is an automated Changesets release that only bumps version numbers in package.json files and updates CHANGELOG.md files with release notes. > > - Version bumps: vercel 50.26.1 → 50.27.0, @vercel/next 4.15.39 → 4.15.40 > - Changelog updates documenting new features and patches > - Deleted changeset markdown files consumed by release process > > <sup>Risk assessment for [commit 61c7c67](https://github.com/vercel/vercel/commit/61c7c67b4789c68204b0a7bb6ab66c75e3c57997).</sup> <!-- VADE_RISK_END --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Context: We stopped printing this out in [this commit](a4ebb23) because because of #14785 Which is now making it hard to identify what version the build container is running on This change keeps aesthetics from original change when locally but prints it out when running in build container <!-- VADE_RISK_START --> > [!NOTE] > Low Risk Change > > This PR adds conditional logging to print CLI version info to stdout instead of debug output when VERCEL=1 environment variable is set, a minor diagnostic enhancement with no security implications. > > - Adds conditional output function based on VERCEL=1 env var > - Changes debug logging to print for CLI version info in specific environment > > <sup>Risk assessment for [commit 5ee5454](https://github.com/vercel/vercel/commit/5ee5454c4edaf391fc50562c0b80d60f3d06bee0).</sup> <!-- VADE_RISK_END -->
Context: We stopped printing this out in this commit because because of #14785
Which is now making it hard to identify what version the build container is running on
This change keeps aesthetics from original change when locally but prints it out when running in build container
Note
Low Risk Change
This PR adds conditional logging to print CLI version info to stdout instead of debug output when VERCEL=1 environment variable is set, a minor diagnostic enhancement with no security implications.
Risk assessment for commit 5ee5454.