Repository navigation
[PB-7067]: feat/warn when a newer CLI version is available - #737
Merged
Merged
Conversation
Adds @oclif/plugin-warn-if-update-available. It checks npm once a day in the background and shows a notice at most every 6 hours.
|
larryrider
approved these changes
Nov 4, 2026
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.



What
Shows a notice when a newer version of the CLI is published on npm:
› Warning: A new version of the Internxt CLI is available: 1.6.10 → 1.7.0.
› Update with: npm install -g @internxt/cli@latest
In Docker the notice says
docker pull internxt/webdav:latestin plain text instead.Why
Many users run very old versions of the CLI and have no way of knowing a newer one exists.
How
@oclif/plugin-warn-if-update-available4.0.5, pinned and configured inpackage.json.timeoutInDays: 1; the plugin's default is 60 days). The npm lookup runs in a detached background process and the result is cached in~/.cache/internxt-cli/version, so commands aren't slowed down.--jsonoutput stays clean.DockerfilesetsINXT_RUNTIME=docker, which the message template uses to pick the Docker text.