Skip to content

Version check in the CLI #1604

@grampelberg

Description

@grampelberg

The gcloud CLI does this nice thing where it notifies you that there's a new version every time you run the CLI. It would be awesome if the linkerd CLI did something similar.

This should be output via. stderr (not stdout) and I'd love to have an option to silence the warning as it'll get a little annoying when you get it every time.

Here's a couple options:

There is a newer version of linkerd available. To update to the latest, please run:

$ curl https://run.linkerd.io/install | bash

To silence this warning, run:

$ linkerd config set versionCheck false
There is a newer version of linkerd available. To update to the latest, take a look at the documentation by running:

$ open https://linkerd.io/2/update

To silence this warning, run:

$ linkerd config set versionCheck false
There is a newer version of linkerd available. To update to the latest run:

$ linkerd update

To silence this warning, run:

$ linkerd config set versionCheck false

While I think the last one is the best long term solution, that has some implications that blow up the scope of this issue. Given that and the fact that there might be extended instructions, my vote is the second.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions