Which two of the following can be performed directly with the IBM Cloud Functions CLI plug-in? (Select two.)
Which two of the following can be performed directly with the IBM Cloud Functions CLI plug-in? (Select two.)
A . Add ACL to a package.
B . Create package bindings.
C . List entities in a package.
D . SSH into the server running an action.
E . Encrypt code associated with an action.
Answer: BC
Explanation:
B: Although you can use the entities in a package directly, you might find yourself passing the same
parameters to the action every time. You can simplify the process by binding to a package and specifying
default parameters, which are inherited by the actions in the package.
Example: Bind to the /whisk.system/samples package and set a default place parameter value.
wsk package bind /whisk.system/samples valhallaSamples –param place Valhalla
ok: created binding valhallaSamples
C: Several packages are registered with Cloud Functions. You can get a list of packages in a namespace, list the entities in a package, and get a description of the individual entities in a package.
Example: Get a list of packages in the /whisk.system namespace.
wsk package list /whisk.system
Note: Using the Cloud Functions CLI
Once the environment is configured, you can use the Cloud Functions CLI to perform the following tasks:
Run your code snippets, or actions, on Cloud Functions
Use triggers and rules to enable your actions to respond to events.
Learn how packages bundle actions and configure external events sources.
Explore the catalog of packages and enhance your applications with external services, such as a Cloudant
event source.
References: https://console.bluemix.net/docs/openwhisk/openwhisk_packages.html#openwhisk_packages