To use the IBM Cloud Functions CLI (Command Line Interface), follow these steps.

Download

Download and install the Bluemix CLI.

Install the Cloud Functions Plugin

bx plugin install Cloud-Functions -r Bluemix

Log In to Bluemix

Do this step initially and whenever you want to target a different Region:

Run the command below in a terminal to target Region: US South and Namespace: .
bx login -a api.ng.bluemix.net -o -s
After this step, you can use the Bluemix CLI to change the target Region and Namespace.

Test It

Verify your setup. Here, we perform a blocking (synchronous) invocation of echo, passing it "hello" as an argument.
bx wsk action invoke /whisk.system/utils/echo -p message hello --result
{ "message": "hello" }
For more detail, consult the online Cloud Functions documentation.
To use the IBM Cloud Functions CLI (Command Line Interface), follow these steps.

Target a Region and Namespace

Please log in to see your credentials

Test It

Verify your setup. Here, we perform a blocking (synchronous) invocation of echo, passing it "hello" as an argument.
wsk action invoke /whisk.system/utils/echo -p message hello --result
{ "message": "hello" }
For more detail, consult the online Cloud Functions documentation.