OpenStack CLI
Install and configure the OpenStack CLI to manage Private Cloud Director services.
Last updated
Was this helpful?
Install and configure the OpenStack CLI to manage Private Cloud Director services.
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).
Run the following command to install the OpenStack CLI on your local machine.
apt install python3-openstackclient -yThe 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 RC file listed on the page.
Copy the contents to a new file named openstackrc and update OS_PASSWORD with your Private Cloud Director account password.
Run the following command to set the environment variables.
source openstackrcTo verify your setup, run the following command to list all virtual machines in your current tenant.
Last updated
Was this helpful?
Was this helpful?
openstack server list