Skip to content

Conversation

@kpfleming
Copy link
Contributor

Change summary

When the CLI informs the user that a newer version is available for installation, it will now detect whether that new version is at least one major version higher than the installed version. If it is, it will provide the user links to the changelog (release notes) for each of the major versions between the current version and the latest version. There is no change in the output if the current version and latest version have the same major version number.


Sample output (one major version behind):

kpfleming@kpf25:~/src/fastly/cli$ ./fastly version
Fastly CLI version v12.1.0 (unknown)
Built with go version go1.25.5 linux/amd64 (2026-01-16)

A new version of the Fastly CLI is available.
Current version: 12.1.0
Latest version: 13.3.0

Note: Please review the release notes for the major version(s) listed below before upgrading.
Version 13.0.0: https://github.com/fastly/cli/releases/tag/v13.0.0
Run `fastly update` to get the latest version.

Sample output (multiple major versions behind):

kpfleming@kpf25:~/src/fastly/cli$ ./fastly version
Fastly CLI version v10.1.0 (unknown)
Built with go version go1.25.5 linux/amd64 (2026-01-16)

A new version of the Fastly CLI is available.
Current version: 10.1.0
Latest version: 13.3.0

Note: Please review the release notes for the major versions listed below before upgrading.
Version 11.0.0: https://github.com/fastly/cli/releases/tag/v11.0.0
Version 12.0.0: https://github.com/fastly/cli/releases/tag/v12.0.0
Version 13.0.0: https://github.com/fastly/cli/releases/tag/v13.0.0
Run `fastly update` to get the latest version.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

@kpfleming kpfleming marked this pull request as ready for review January 16, 2026 19:22
@kpfleming kpfleming requested a review from a team as a code owner January 16, 2026 19:22
@kpfleming kpfleming requested a review from rcaril January 16, 2026 19:22
Copy link
Contributor

@rcaril rcaril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kpfleming kpfleming enabled auto-merge (squash) January 16, 2026 20:20
@kpfleming kpfleming merged commit 6bcba6f into fastly:main Jan 16, 2026
9 checks passed
@kpfleming kpfleming deleted the CDTOOL-1235 branch January 16, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants