📜  list avds - Shell-Bash (1)

📅  最后修改于: 2023-12-03 14:44:00.950000             🧑  作者: Mango

list avds - Shell-Bash

Introduction

The list avds command is used in the Shell-Bash programming language to retrieve a list of Android Virtual Devices (AVDs) installed on your system. This command provides information about the available AVDs, such as the device name, target API level, CPU architecture, and system image path.

Syntax

The general syntax of the list avds command is as follows:

$ list avds [options]
Options

The list avds command supports the following options:

  • -c or --compact: Display a compact list with minimal information about the AVDs.
  • -h or --help: Show the help message and exit.
  • -p <PATH> or --path <PATH>: Specify the path to the AVD directory. By default, it uses the default AVD location.
  • -s or --silent: Display output in a machine-readable format for automated processing.
  • -v or --verbose: Display detailed information about the AVDs.
Examples

Here are a few examples of using the list avds command:

  1. Display a list of all AVDs with detailed information:
$ list avds -v
  1. Show a compact list of AVDs with minimal information:
$ list avds -c
  1. Specify a custom path to the AVD directory:
$ list avds -p /path/to/avds
  1. Display AVD information in a machine-readable format:
$ list avds -s
Output Format

The output of the list avds command is formatted in Markdown for easy readability. Here's an example of the output:

| Name      | Target API | CPU/ABI       | Path                      |
|-----------|------------|---------------|---------------------------|
| Nexus_5X  | 28         | x86           | /path/to/avds/Nexus_5X.avd |
| Pixel_3   | 29         | x86_64        | /path/to/avds/Pixel_3.avd  |
| Nexus_7   | 24         | arm64-v8a     | /path/to/avds/Nexus_7.avd  |

The table displays the AVD name, target API level, CPU architecture, and the path to the system image.

Conclusion

The list avds command in Shell-Bash provides a convenient way for programmers to retrieve information about the Android Virtual Devices available on their system. By using various options, you can customize the output format and display the desired level of detail.