Link Search Menu Expand Document

Basic usage

Basic usage of the CLI includes learning how to log into your account, retrieve the kubeconfig associated with the current environment, and opening the web ui.

Login into the Playground

To log into the playground from the CLI use:

playground login
Login success

Obtaining the kubeconfig

The kubeconfig file is automatically managed by the CLI and it is stored at ~/.napptive/default/napptive-kubeconfig. However, if you are interested in retrieving a copy to use it from another path, execute:

playground get-kubeconfig
ASSOCIATED SERVER
https://<server_IP>

Use this kubeconfig to connect to the cluster and deploy applications:
kubectl --kubeconfig <napptive-kubeconfig> ...

Environment information

To retrieve information about the current environment in use, execute:

playground env info
Server version: v1.21.12-gke.2200 OAM: v0.3.1
CREATION_TIME                          CREATED_BY
<timestamp>                            <username>

ACCOUNT           ENV          CPU     RAM       STORAGE
<account_name>    <env_name>   0/2     0/2000    0/1000

DESCRIPTION
<environment description>

Open Dashboard

To open the Playground dashboard execute:

playground dashboard

and the dashboard home screen will open in your default browser

Login