ONAP Command-line interface (CLI)
One Command to command whole Onap !!
Provides unified commands to operate ONAP from Linux console. Configure the following environment variables, before using it:
- ONAP_HOST_URL - Onap Micro service bus(MSB) URL or a service URL
- ONAP_USERNAME - Onap user name
- ONAP_PASSWORD - Onap user password
To Run a command
Type onap
To Run in Interactive mode
Type onap from linux console.
And use the directive set to set the values for following parameters:
- host-url - Onap Micro service bus(MSB) URL or a service URL
- onap-username - Onap user name
- onap-password - Onap user password
Set the product version
CLI framework is enhanced to handle multiple product versions at same time. so to choose the product version, set evironment variable CLI_PROUDCT_VERSION.
NOTE: In interactive mode, product version can be selected using
typing use
Run onap [-v|--version] to see the CLI and available product version details
Set the parameter values
Use the directive 'set' for setting the values for parameters and 'unset' for un-seting the values.
Help
onap [-h|--help]
onap
Debug Mode
To run in debug mode, set following environment variables: 1. ONAP_CLI_DEBUG - By default its false, otherwise Set to true 2. ONAP_CLI_DEBUG_PORT - By default it is 5005, otherwise set to new TCP port number
More details
https://wiki.onap.org