VMware vCloud Director CLI Cheatsheet
#
VMware vCloud Director CLI provides commands to manage and configure vCloud Director environments. These commands help administrators and tenants perform tasks related to virtual data centers, networks, VMs, and more directly from the command line.
General Commands
#
Command/Option | Example | Description |
---|
vcd version | vcd version | Display the vCloud Director CLI version |
vcd login | vcd login <vcd_url> <org> <username> --password <password> | Log in to a vCloud Director session |
vcd logout | vcd logout | Log out of the current session |
vcd status | vcd status | Display the current session status |
Organization Management
#
Command/Option | Example | Description |
---|
vcd org list | vcd org list | List all organizations |
vcd org create | vcd org create <org_name> --fullname <full_name> --enabled | Create a new organization |
vcd org delete | vcd org delete <org_name> | Delete an organization |
vcd org use | vcd org use <org_name> | Select an organization for subsequent commands |
Virtual Data Center Management
#
Command/Option | Example | Description |
---|
vcd vdc list | vcd vdc list | List all virtual data centers (VDCs) |
vcd vdc create | vcd vdc create <vdc_name> --provider-vdc <provider_vdc> --network-pool <network_pool> --storage-profile <storage_profile> | Create a new VDC |
vcd vdc delete | vcd vdc delete <vdc_name> | Delete a VDC |
vcd vdc use | vcd vdc use <vdc_name> | Select a VDC for subsequent commands |
Virtual Machine Management
#
Command/Option | Example | Description |
---|
vcd vm list | vcd vm list | List all VMs in the selected VDC |
vcd vm create | vcd vm create <vm_name> --vapp <vapp_name> --catalog <catalog_name> --template <template_name> | Create a new VM from a template |
vcd vm delete | vcd vm delete <vm_name> | Delete a VM |
vcd vm poweron | vcd vm poweron <vm_name> | Power on a VM |
vcd vm poweroff | vcd vm poweroff <vm_name> | Power off a VM |
vApp Management
#
Command/Option | Example | Description |
---|
vcd vapp list | vcd vapp list | List all vApps in the selected VDC |
vcd vapp create | vcd vapp create <vapp_name> --vdc <vdc_name> --catalog <catalog_name> --template <template_name> | Create a new vApp from a template |
vcd vapp delete | vcd vapp delete <vapp_name> | Delete a vApp |
vcd vapp poweron | vcd vapp poweron <vapp_name> | Power on a vApp |
vcd vapp poweroff | vcd vapp poweroff <vapp_name> | Power off a vApp |
Network Management
#
Command/Option | Example | Description |
---|
vcd network list | vcd network list | List all networks in the selected VDC |
vcd network create | vcd network create <network_name> --gateway <gateway> --netmask <netmask> | Create a new network |
vcd network delete | vcd network delete <network_name> | Delete a network |
vcd network use | vcd network use <network_name> | Select a network for subsequent commands |
Catalog Management
#
Command/Option | Example | Description |
---|
vcd catalog list | vcd catalog list | List all catalogs |
vcd catalog create | vcd catalog create <catalog_name> | Create a new catalog |
vcd catalog delete | vcd catalog delete <catalog_name> | Delete a catalog |
vcd catalog item list | vcd catalog item list <catalog_name> | List all items in a catalog |
vcd catalog item upload | vcd catalog item upload <catalog_name> <item_name> --file <file_path> | Upload an item to a catalog |
User Management
#
Command/Option | Example | Description |
---|
vcd user list | vcd user list | List all users in the selected organization |
vcd user create | vcd user create <username> --password <password> --role <role_name> | Create a new user |
vcd user delete | vcd user delete <username> | Delete a user |
vcd user update | vcd user update <username> --password <new_password> | Update user properties |
Log Management
#
Command/Option | Example | Description |
---|
vcd log list | vcd log list | List all log files |
vcd log show | vcd log show --file <log_file> | Display the contents of a log file |
vcd log download | vcd log download --file <log_file> --output <output_path> | Download a log file |
Troubleshooting
#
Command/Option | Example | Description |
---|
vcd support bundle create | vcd support bundle create --output <output_path> | Create a support bundle for troubleshooting |
vcd support diagnose | vcd support diagnose --component <component> | Run diagnostics on a specific component |
vcd support status | vcd support status | Display the status of support services |
This cheatsheet covers the most commonly used VMware vCloud Director CLI commands and options, helping you to manage organizations, virtual data centers, VMs, vApps, networks, catalogs, users, logs, and perform troubleshooting effectively.