Compute service CLI reference¶
See https://docs.openstack.org/ocata/cli-reference/nova.html.
These commands allow you to perform various operations on instances, such as listing, creating, deleting, and resizing instances, as well as managing flavors and key pairs. The <server_id_or_name>
, <flavor_id_or_name>
, and <keypair_name>
parameters are placeholders that should be replaced with the actual IDs or names of the resources you are working with.
List instances¶
Show instance details¶
Create an instance¶
Bash
openstack server create --flavor <flavor_id_or_name> --image <image_id_or_name> --key-name <keypair_name> --network <network_id_or_name> <server_name>
Delete an instance¶
Start an instance¶
Stop an instance¶
Reboot an instance¶
Resize an instance¶
List flavors¶
Show flavor details¶
Create a flavor¶
Bash
openstack flavor create --id <flavor_id> --ram <ram_in_mb> --disk <disk_in_gb> --vcpus <num_vcpus> <flavor_name>