Openwhisk: Add a command to return the version of the CLI

Created on 23 Dec 2016  路  13Comments  路  Source: apache/openwhisk

There is no available command to wsk that returns the version of the CLI installed.

cli enhancement

Most helpful comment

Agree - the date was more intended to show the build date, not the actual version. We could adopt semantic versioning and do it manually to get going.

All 13 comments

Try: wsk property get -h

Confirmed this works: wsk property get --cliversion

However, this should be exposed on the top level help screen. It is a pretty common feature (imo) should be made more evident.

Sure wsk --version makes sense as an alias.

Looks like there is two different converstations going on here. One about the wsk CLI and the other about wskdeploy.

This issue should address wsk not wsk deploy.

@rabbah, is this one we need fix or not?

We should add wsk --version and it would be great to also add an auto update feature as well or at least notify the user there is a newer version.

We'll need to improve our build processes to not create a new CLI version if no code has changes, as the CLI is currently versioned by date and you don't want to notify users everytime a new OpenWhisk is deployed.

Agree - the date was more intended to show the build date, not the actual version. We could adopt semantic versioning and do it manually to get going.

manually you mean we pass in build number as arguments everytime we updated code?

A new CLI is not created if the code has not been changed as long as there is already a Docker container of the built CLI in the cache.

Ok, got it.

Was this page helpful?
0 / 5 - 0 ratings