Add/Remove Platform9 CLI

Management of the Platform9 CLI

This page provides instructions to install, update and uninstall the Platform9 CLI

Pre-requisites

The CLI currently supports

  • Ubuntu 16.04
  • Ubuntu 18.04
  • CentOS 7.6/7.7/7.8

Installation

From the command line of your machine, run the following commands to download the CLI installer and run it to install the CLI.

Bash
Copy

This will download a script named cli_setup.sh and invoke the script.

You need to run the CLI commandpf9ctl config set to configure the credentials to connect to your SaaS Management Plane - during the CLI installation. You can change the specified credentials later by rerunning the config set command.

Once the CLI is successfully installed, you can run the CLI to create PMK clusters.

Upgrade

To upgrade the CLI to the latest version, simply run the cli-setup.sh script again.

Bash
Copy

It will update the installed packages if new versions are available in the upstream repository. NOTE - You will need to specify your PMK account credentials again.

Uninstall

To uninstall the CLI you need to remove the installation directories by running:

rm -rf ~/pf9 ------------> Will remove the logs/db/binary

rm -rf /usr/bin/pf9ctl ----> Will remove the soft link

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Chris Jones