CLI Overview
The Platform9 CLI pf9ctl provides an easy way to create and manage your BareOS Kubernetes clusters. The CLI lets you automate preparing and attaching nodes for the creation of highly available multi-master Kubernetes clusters using physical or virtual machines.
Using the CLI you can:
- Use it to check a node is ready to be used as a Kubernetes node: pf9ctl prep-node
- Use it to prepare your machines and connect them to Platform9:
pf9ctl prep-node
Advanced CLI Options
- Use the CLI remotely to check or prepare nodes CLI for Remote Installation Over SSH Prep-Node
Platform9 has replaced the existing CLI written in Python with a GO based CLI. This change has removed Create Cluster, Attach Node and Bootstrap commands. Future releases will restore this functionality.
Below are the steps to attach nodes to Platform9:

BareOS Cluster Wizard with no Nodes Available
Use the CLI to Prep Nodes
To be able to create a cluster using the platform9 Management Plane each node must first be connected using the Platform9 CLI. The CLI is first installed, then used in the prep-node mode to check prerequisites such as CPU, RAM, HDD, install all required software packages and then connect the node to Platform9.
Follow the steps below to use the PF9 CLI to connect nodes to the Platform9 Management Plane
- Download and install the CLI on each node of the Kubernetes cluster
bash <(curl -sL https://pmkft-assets.s3-us-west-1.amazonaws.com/pf9ctl_setup) 2.Once the installer is finished run the CLI command pf9ctl config set this will configure the CLI to connect to your Platform9 SaaS Management Plane.
pf9ctl config set- Enter the SaaS Management Plane URL: (Example: https://pmkft-managementplane.platform9.io )
- Enter your username and password
- Enter the region: (Default is "RegionOne")
- Enter the Tenant: (Default is "Service")
- The CLI is now configured and can be used to prepare and connect the node to Platform9.
pf9ctl prep-node- Once
prep-nodehas been completed on each node return to the Platform9 Management Plane and complete the BareOS Create a Cluster Wizard to build your Kubernetes Cluster
###