Skip to main content Link Search Menu Expand Document (external link)

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
Logged as <username> on <account>/default environment using <provider> credentials.

The CLI will store your credentials provider in the local ${HOME}/.napptive/.playground.yaml. In case you change the provider, or there was an error in the initial configuration, use the following command to reset your credential provider configuration.

playground login --showLoginOptions

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

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

<environment description>

Open Dashboard

To open the Playground dashboard execute:

playground dashboard

and the dashboard home screen will open in your default browser