[Yandex Cloud documentation](../../../index.md) > [Yandex Compute Cloud](../../index.md) > [CLI reference](../index.md) > [instance](index.md) > list

# yc compute instance list

List virtual machine instances

#### Command Usage

Syntax:

`yc compute instance list [Flags...] [Global Flags...]`

#### Flags

#|
||Flag | Description ||
|| `--limit` | `int`

The maximum number of items to list. Default is 1000 items ||
|#

#### Global Flags

#|
||Flag | Description ||
|| `--profile` | `string`

Set the custom configuration file. ||
|| `--debug` | Debug logging. ||
|| `--debug-grpc` | Debug gRPC logging. Very verbose, used for debugging connection problems. ||
|| `--no-user-output` | Disable printing user intended output to stderr. ||
|| `--retry` | `int`

Enable gRPC retries. By default, retries are enabled with maximum 5 attempts.
Pass 0 to disable retries. Pass any negative value for infinite retries.
Even infinite retries are capped with 2 minutes timeout. ||
|| `--cloud-id` | `string`

Set the ID of the cloud to use. ||
|| `--folder-id` | `string`

Set the ID of the folder to use. ||
|| `--folder-name` | `string`

Set the name of the folder to use (will be resolved to id). ||
|| `--endpoint` | `string`

Set the Cloud API endpoint (host:port). ||
|| `--token` | `string`

Set the OAuth token to use. ||
|| `--impersonate-service-account-id` | `string`

Set the ID of the service account to impersonate. ||
|| `--no-browser` | Disable opening browser for authentication. ||
|| `--format` | `string`

Set the output format: text (default), yaml, json, json-rest. ||
|| `--jq` | `string`

Query to select values from the response using jq syntax ||
|| `-h`, `--help` | Display help for the command. ||
|#
#### Examples

 * [Enabling a software-accelerated network](../../operations/enable-software-accelerated-network.md#cli_1)
 * [Attaching a file storage to a VM](../../operations/filesystem/attach-to-vm.md#cli_1)
 * [Detaching a file storage from a VM](../../operations/filesystem/detach-from-vm.md#cli_1)
 * [Creating a VM from a public image](../../operations/images-with-pre-installed-software/create.md#cli_1)
 * [Attaching an existing VM to a pool](../../operations/reserved-pools/manage-pool-vms.md#cli_3)
 * [Connecting using a standard SSH client](../../operations/vm-connect/os-login.md#ssh-key_1)
 * [Adding a network interface to a stopped VM](../../operations/vm-control/attach-network-interface.md#cli_1)
 * [Deleting a network interface from a VM](../../operations/vm-control/detach-network-interface.md#cli_1)
 * [Updating the VM internal IP address](../../operations/vm-control/internal-ip-update.md#cli_1)
 * [Assigning a role](../../operations/vm-control/vm-access.md#cli_1)
 * [Attaching a disk](../../operations/vm-control/vm-attach-disk.md#cli_1)
 * [Assigning a public IP address to a VM](../../operations/vm-control/vm-attach-public-ip.md#cli_1)
 * [Updating a VM folder](../../operations/vm-control/vm-change-folder.md#cli_1)
 * [Delete the source VM](../../operations/vm-control/vm-change-zone.md#cli_3)
 * [Deleting a VM](../../operations/vm-control/vm-delete.md#cli_1)
 * [Detaching a disk from a VM](../../operations/vm-control/vm-detach-disk.md#cli_1)
 * [Unassigning a public IP address from a VM](../../operations/vm-control/vm-detach-public-ip.md#cli_1)
 * [Stopping](../../operations/vm-control/vm-stop-and-start.md#cli_1)
 * [Assign the IP address to the new VM](../../operations/vm-control/vm-transferring-public-ip.md#cli_4)
 * [Changing the vCPU and RAM configuration](../../operations/vm-control/vm-update-resources.md#cli_1)
 * [Updating a VM](../../operations/vm-control/vm-update.md#cli_1)
 * [Create a VM running on Gen 2 hardware](../../operations/vm-create/create-gen2-vm.md#tf_5)
 * [Changing the VM type](../../operations/vm-create/create-preemptible-vm.md#cli_2)
 * [Getting information from outside a VM](../../operations/vm-info/get-info.md#cli_1)
 * [Getting the serial port output](../../operations/vm-info/get-serial-port-output.md#cli_1)
 * [Accessing metadata from outside the VM instance](../../operations/vm-metadata/get-vm-metadata.md#cli_1)
 * [Configuring parameters of the VM metadata service](../../operations/vm-metadata/setup-metadata-service.md#cli_1)
 * [Enabling access via OS Login](../../operations/vm-metadata/update-vm-metadata.md#cli_3)