Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to get version of func CLI #2067

Closed
datho7561 opened this issue Nov 2, 2023 · 4 comments
Closed

Command to get version of func CLI #2067

datho7561 opened this issue Nov 2, 2023 · 4 comments

Comments

@datho7561
Copy link

How do I get information on the version of the func CLI that I'm using? func version doesn't report the client version, instead it reports what I think is the Knative function version on the cluster? func version -v reports the commit, which is helpful, but then I have to search the repo to figure out which release that corresponds to.

@mwmahlberg
Copy link

@datho7561 You might want to give func environment a shot. This gives you quite some information and then some.

However, your premise of func version returning the Knative version is incorrect:

Bildschirmfoto 2023-11-10 um 23 32 36

hth

@lkingland
Copy link
Member

Yes, func version is reporting the version of the CLI that you're running. Functions doesn't require anything installed in the cluster other than Knative (Serving and Eventing).

We aren't (yet) tagging the CLI releases regularly, so the version is how far ahead the CLI you're running is from the last tagged version. In your first case, you're running the Functions CLI which is 99 commits ahead of the last tagged release, 0.38.0, which is commit gcd0bc6ae.

I hope that helps; we are actively working on improving our release process 👍🏻

@lkingland
Copy link
Member

Please feel free to reopen or file another issue (or discussion) with more questions

@datho7561
Copy link
Author

I'm sorry, I think I misunderstand something. When I run func version with version 1.12.0 it reports the version as v0.38.0-99-gcd0bc6ae. Is there a way to get func version to report 1.12.0?

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

No branches or pull requests

3 participants