Skip to main content

Start the OpenStack CLI

Last update:

The OpenStack CLI startup process depends on how you have configured OpenStack API authorization:

Start the OpenStack CLI in the OS

  1. Open the CLI.

  2. Apply the environment variables from the RC file:

    source <rcfile_name>

    Specify <rcfile_name> is the name of the RC file you downloaded to configure the OpenStack CLI. The default is rc.sh.

  3. Enter the OpenStack password - the password of the service user for whom you downloaded the RC file.

  4. Verify that the OpenStack CLI is running. To do this, open the list of cloud servers:

    openstack server list

    If cloud servers have been created in the pool and project specified in the variables, their list will appear in the command output. If no servers have been created yet, the command output will be empty.

Run the OpenStack CLI in a Docker container

  1. Open the CLI.

  2. Start the Docker container:

    docker run -ti --rm -v $(pwd):/workspace osc:dalmatian
  3. Apply the environment variables from the RC file:

    source <rcfile_name>

    Specify <rcfile_name> is the name of the RC file you downloaded to configure the OpenStack CLI. The default is rc.sh.

  4. Enter the OpenStack password - the password of the service user for whom you downloaded the RC file.

  5. Verify that the OpenStack CLI is running. To do this, open the list of cloud servers:

    openstack server list

    If cloud servers have been created in the pool and project specified in the variables, their list will appear in the command output. If no servers have been created yet, the command output will be empty.

  6. After working with the OpenStack CLI, log out of the Docker container:

    exit