Skip to main content

Launch OpenStack CLI

Last update:

The process of launching OpenStack CLI depends on how you configured OpenStack API authentication:

Launch OpenStack CLI in the OS

  1. Open the CLI.

  2. Apply environment variables from the RC file:

    source <rcfile_name>

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

  3. Enter your OpenStack password — the password of the service user for which you downloaded the RC file.

  4. Make sure OpenStack CLI is working. 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, they will appear in the output. If no servers have been created yet, the output will be an empty string.

Launch OpenStack CLI in a Docker container

  1. Open the CLI.

  2. Launch the Docker container:

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

    source <rcfile_name>

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

  4. Enter your OpenStack password — the password of the service user for which you downloaded the RC file.

  5. Make sure OpenStack CLI is working. 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, they will appear in the output. If no servers have been created yet, the output will be an empty string.

  6. After working with OpenStack CLI, exit the Docker container:

    exit