Install Lens AppIQ Client

Installation Options

You can download and/or upgrade the Lens AppIQ CLI by running a bash script or if leveraging a Mac, using Homebrew.

Bash Script

curl -s | bash

The command above will install the Lens AppIQ CLI in your /usr/local/bin


Specific Version of the CLI

Can Pipe on a specific version e.g

curl -s  | VERSION=vx.y.z bash


brew tap shipa-corp/cli

brew install lapps-cli
brew tap shipa-corp/cli

brew install lapps-cloud-cli

Add Cluster and Login with CLI

Add Lens AppIQ API targets using the current Kubernetes context in your machine and sets it as the current target.

lapps target add api

lapps sso login <token>


Lens AppIQ OAuth/SSO CLI Authentication

Head to Settings then obtain your token for Single Sign On CLI_ lapps sso login <token>

Enabling CLI Tab Autocompletion

As of CLI Version 1.7.0, you can now enable Tab Autocompletion. Install to at least CLI version 1.7.0 then run the help completion command to enable in your terminal profile.

lapps help completion

To load completions:
  $ source <(lapps completion bash)
  # To load completions for each session, execute once:
  # Linux:
  $ lapps completion bash > /etc/bash_completion.d/lapps
  # macOS:
  $ lapps completion bash > /usr/local/etc/bash_completion.d/lapps
  # If shell completion is not already enabled in your environment,
  # you will need to enable it.  You can execute the following once:
  $ echo "autoload -U compinit; compinit" >> ~/.zshrc
  # To load completions for each session, execute once:
  # Linux:
  $ lapps completion zsh > "${fpath[1]}/_lapps"
  # macOS:
  $ lapps completion zsh > /usr/local/share/zsh/site-functions/_lapps
  # You will need to start a new shell for this setup to take effect.
  $ lapps completion fish | source
  # To load completions for each session, execute once:
  $ lapps completion fish > ~/.config/fish/completions/
  PS> lapps completion powershell | Out-String | Invoke-Expression
  # To load completions for every new session, run:
  PS> lapps completion powershell > lapps.ps1
  # and source this file from your PowerShell profile.

Setup API Target

lapps target add api    

For details on managing API endpoint using CLI see Manage Lens Apps API endpoint.

What’s Next

After downloading the Lens Apps Cloud client, add your Lens Apps Cloud instance as a target