CLI

Set up the IBM Cloud Functions CLI plugin.

  1. Download the IBM Cloud CLI

  1. Log in to IBM Cloud

Run the command below in a terminal to target Namespace: .

$
ibmcloud login -a

After this step, you can use the IBM Cloud CLI to change the target region and namespace.

  1. Install the Cloud Functions plug-in

$
ibmcloud plugin install cloud-functions

  1. Target a namespace

$
ibmcloud target -o <org> -s <space>

  1. Test it

Perform a list command to display all entities in the current targeted namespace.

$
ibmcloud fn list

For more detail, consult the online Cloud Functions documentation.

Looking for the FN CLI?

On 03/09/18, the Cloud Functions stand-alone CLI download was removed. If you still have a version of the Cloud Functions stand-alone CLI you can find instructions to configure it below.

To continue managing Cloud Functions entities, use the Cloud Functions plug-in for the IBM Cloud CLI.

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

Target a Region and Namespace

Log in to see your credentials

Test it

Perform a list command to display all entities in the current targeted namespace.
ibmcloud fn list
For more detail, consult the online Cloud Functions documentation.