VMware vCloud Director CLI

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/OptionExampleDescription
vcd versionvcd versionDisplay the vCloud Director CLI version
vcd loginvcd login <vcd_url> <org> <username> --password <password>Log in to a vCloud Director session
vcd logoutvcd logoutLog out of the current session
vcd statusvcd statusDisplay the current session status

Organization Management #

Command/OptionExampleDescription
vcd org listvcd org listList all organizations
vcd org createvcd org create <org_name> --fullname <full_name> --enabledCreate a new organization
vcd org deletevcd org delete <org_name>Delete an organization
vcd org usevcd org use <org_name>Select an organization for subsequent commands

Virtual Data Center Management #

Command/OptionExampleDescription
vcd vdc listvcd vdc listList all virtual data centers (VDCs)
vcd vdc createvcd vdc create <vdc_name> --provider-vdc <provider_vdc> --network-pool <network_pool> --storage-profile <storage_profile>Create a new VDC
vcd vdc deletevcd vdc delete <vdc_name>Delete a VDC
vcd vdc usevcd vdc use <vdc_name>Select a VDC for subsequent commands

Virtual Machine Management #

Command/OptionExampleDescription
vcd vm listvcd vm listList all VMs in the selected VDC
vcd vm createvcd vm create <vm_name> --vapp <vapp_name> --catalog <catalog_name> --template <template_name>Create a new VM from a template
vcd vm deletevcd vm delete <vm_name>Delete a VM
vcd vm poweronvcd vm poweron <vm_name>Power on a VM
vcd vm poweroffvcd vm poweroff <vm_name>Power off a VM

vApp Management #

Command/OptionExampleDescription
vcd vapp listvcd vapp listList all vApps in the selected VDC
vcd vapp createvcd vapp create <vapp_name> --vdc <vdc_name> --catalog <catalog_name> --template <template_name>Create a new vApp from a template
vcd vapp deletevcd vapp delete <vapp_name>Delete a vApp
vcd vapp poweronvcd vapp poweron <vapp_name>Power on a vApp
vcd vapp poweroffvcd vapp poweroff <vapp_name>Power off a vApp

Network Management #

Command/OptionExampleDescription
vcd network listvcd network listList all networks in the selected VDC
vcd network createvcd network create <network_name> --gateway <gateway> --netmask <netmask>Create a new network
vcd network deletevcd network delete <network_name>Delete a network
vcd network usevcd network use <network_name>Select a network for subsequent commands

Catalog Management #

Command/OptionExampleDescription
vcd catalog listvcd catalog listList all catalogs
vcd catalog createvcd catalog create <catalog_name>Create a new catalog
vcd catalog deletevcd catalog delete <catalog_name>Delete a catalog
vcd catalog item listvcd catalog item list <catalog_name>List all items in a catalog
vcd catalog item uploadvcd catalog item upload <catalog_name> <item_name> --file <file_path>Upload an item to a catalog

User Management #

Command/OptionExampleDescription
vcd user listvcd user listList all users in the selected organization
vcd user createvcd user create <username> --password <password> --role <role_name>Create a new user
vcd user deletevcd user delete <username>Delete a user
vcd user updatevcd user update <username> --password <new_password>Update user properties

Log Management #

Command/OptionExampleDescription
vcd log listvcd log listList all log files
vcd log showvcd log show --file <log_file>Display the contents of a log file
vcd log downloadvcd log download --file <log_file> --output <output_path>Download a log file

Troubleshooting #

Command/OptionExampleDescription
vcd support bundle createvcd support bundle create --output <output_path>Create a support bundle for troubleshooting
vcd support diagnosevcd support diagnose --component <component>Run diagnostics on a specific component
vcd support statusvcd support statusDisplay 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.

VMware vCloud Director CLI

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.