OpenStack CLI
Install and configure the OpenStack CLI to manage Private Cloud Director services.
Overview
PCD Compute, Block Storage, Network, and Identity services expose OpenStack APIs. You can use the OpenStack CLI to perform a wider set of operations than the Private Cloud Director UI supports.
This article covers how to install and configure the OpenStack CLI.
Alternatively, you can use pcdctl, which provides a convenient wrapper for all OpenStack CLI commands exposed by Private Cloud Directorservices. For more information, see PCD CLI (pcdctl).
Install the OpenStack CLI
Run the following command to install the OpenStack CLI on your local machine.
apt install python3-openstackclient -yAuthenticate the OpenStack CLI
The Private Cloud Director UI provides a pcdctl RC file configured for your Private Cloud Director environment.
You can use the same RC file with the OpenStack CLI.
In the Private Cloud Director UI, navigate to Settings and select API Access.
Locate the
pcdctl RCfile listed on the page.Copy the contents to a new file named
openstackrcand updateOS_PASSWORDwith your Private Cloud Director account password.Run the following command to set the environment variables.
source openstackrcRun the OpenStack CLI
To verify your setup, run the following command to list all virtual machines in your current tenant.
Was this helpful?
