Link Search Menu Expand Document

CLI Install


Learn how to download and install the CLI to access the NAPPTIVE Playground.

Curl Installation

Before you start, make sure you have the curl command installed. In case of not running it as root, you will need to also have the su or sudo commands installed. The playground will be installed in /usr/local/bin/ directory and root permissions are needed for this

$ curl -O https://storage.googleapis.com/artifacts.playground.napptive.dev/installer.sh && bash installer.sh
...
playground installed into /usr/local/bin/ successfully.

***************************************************
* Playground installed successfully!              *
*                                                 *
* By proceeding, you are accepting the NAPPTIVE   *
* terms and conditions                            *
* https://napptive.com/terms-and-conditions       *
*                                                 *
* You can visit our documentation page            *
* for more information https://docs.napptive.com/ *
* ENJOY!!!                                        *
***************************************************

playground Cli will be installed in /usr/local/bin directory. It will be ready to be used!!

Manual Installation

If you prefer to install the client manually because you want to install it in another directory, you do not have root permissions, or for any other reason, you can do it with a few simple steps explained below

Obtaining the CLI

To obtain the CLI use the cluster menu and select the option to get the Playground CLI

download CLI

Alternatively, go to the Downloads section and manually select the version.

Installing the CLI

Assuming your file is downloaded on /<my_downloads_path>/playground_<version>.tgz

Install the playground binary by executing:

$ cd /<my_downloads_path>
$ tar xvzf playground_<version>.tgz
# You may choose any other path of your choice.
$ mkdir -p $HOME/.napptive/bin
$ cp playground/playground $HOME/.napptive/bin/.

Now let’s add the playground to the ${PATH}:

For Bash

$ echo export PATH=$PATH:$HOME/.napptive/bin >> $HOME/.bashrc
$ source $HOME/.bashrc

For ZSH

$ echo export PATH=$PATH:$HOME/.napptive/bin >> $HOME/.zshrc
$ source $HOME/.zshrc

MacOS specific steps

Sometimes, when MacOS cannot verify the developer, you may receive a notification about the application not being trusted:

MacOS warning

To use the playground, you need to trust the application. Go to System Preferences -> Security & Privacy -> General and enable the blocked application from Allow apps downloaded from pane at the bottom of the window.

Authorize

Use of local storage

The CLI will create and use ${HOME}/.napptive to store information about the configured cluster.

What’s next