LinuxCommandLibrary

openstack

TLDR

List servers

$ openstack server list
copy
Create server
$ openstack server create --flavor [m1.small] --image [ubuntu] --network [net] [name]
copy
List images
$ openstack image list
copy
List flavors
$ openstack flavor list
copy
Show server details
$ openstack server show [server_name]
copy
Delete server
$ openstack server delete [server_name]
copy

SYNOPSIS

openstack [options] command [args]

DESCRIPTION

openstack is the unified CLI for OpenStack cloud services. It provides a single interface to manage compute, storage, networking, and identity services.
Configuration is typically in clouds.yaml or environment variables.

PARAMETERS

server

Compute instance commands.
image
Image commands.
network
Network commands.
volume
Block storage commands.
flavor
Flavor commands.
--os-cloud name
Use cloud config.
-f format
Output format.

CONFIGURATION

$ # ~/.config/openstack/clouds.yaml
clouds:
  mycloud:
    auth:
      auth_url: https://cloud.example.com:5000
      username: user
      password: pass
      project_name: myproject
copy

COMMON COMMANDS

$ openstack server list
openstack image list
openstack network list
openstack volume list
openstack flavor list
copy

CAVEATS

Requires OpenStack credentials. API versions vary by deployment. Large operations may timeout.

HISTORY

The unified OpenStack client was introduced to replace service-specific CLIs (nova, neutron, cinder), providing consistent interface across services.

SEE ALSO

nova(1), neutron(1), cinder(1), glance(1)

Copied to clipboard