ONAP Command-Line Interface (CLI)

One Command to command whole Onap !!

Provides unified commands to operate ONAP from Linux command console and Web browser.

Web Command Console

To open Console,


Linux Command Shell

Type onap from linux command console

Download

Please download ONAP CLI here

Install

Please follow the instructions given below for installing ONAP CLI.

  1. Un-zip the above download file into /opt/onap/cli folder
  2. Run the following commands:

export ONAP_CLI_HOME=/opt/onap/cli
export CLI_PRODUCT_VERSION=onap-1.1

cd $ONAP_CLI_HOME

if [ ! -d ./data ]; then mkdir ./data; fi
if [ ! -d ./onap-cli-schema ]; then mkdir ./onap-cli-schema; fi

chmod +x ./bin/onap.sh

#Make onap available in path
ln ./bin/onap.sh /usr/bin/onap

#Print the version
onap -v

Run onap command

Configure the following environment variables:

  1. ONAP_HOST_URL - Onap service URL
  2. ONAP_USERNAME - Onap user name
  3. ONAP_PASSWORD - Onap user password

Type onap <command> from command shell.

More details