IBM / ibm-cloud-functions-serverless-apis

Create a serverless, event-driven application with Apache OpenWhisk on IBM Cloud Functions that executes code in response to HTTP REST API calls.
https://developer.ibm.com/code/patterns/build-serverless-api-handlers/
Apache License 2.0
31 stars 40 forks source link

wsk api-experimental | wsk api failing on test script #46

Closed mrutkows closed 7 years ago

mrutkows commented 7 years ago

Just wiped all OW from my Mac and tried the Serverless API demo from the “getting started” page on bluemix… but it appears the binary whisk CLI (as downloaded via the “Download Whisk CLI” from https://console.ng.bluemix.net/openwhisk/ (Mac) does not support either the “wsk api” or “wsk api-experimental” commands.

The result is Matt$ wsk api usage: wsk [-h] [-v] [--apihost hostname] [--apiversion version]

      {package,list,activation,namespace,rule,trigger,action,property,sdk}
      ...

wsk: error: argument cmd: invalid choice: ‘api’ (choose from ‘package’, ‘list’, ‘activation’, ‘namespace’, ‘rule’, ‘trigger’, ‘action’, ‘property’, ‘sdk’)

same for api-experimental...

specifically the script to test results in: Matt$ client/cat-post.sh Tarball Black usage: wsk [-h] [-v] [--apihost hostname] [--apiversion version]

      {package,list,activation,namespace,rule,trigger,action,property,sdk}
      ...

wsk: error: argument cmd: invalid choice: ‘api-experimental’ (choose from ‘package’, ‘list’, ‘activation’, ‘namespace’, ‘rule’, ‘trigger’, ‘action’, ‘property’, ‘sdk’) curl: no URL specified! curl: try ‘curl --help’ or ‘curl --manual’ for more information

So it appears that MAYBE api-experimental is supported but the script invocation is wrong (yet to look)?

at the very least the HELP for the wsk command does not acknowledge either command as valid.