Commandline options for AVDs

The table below lists the command-line options you can use with the android tool.





list avds

List all known AVDs, with name, path, target, and skin.

create avd

-n <name> or

The name for the AVD.


-t <targetID>

Target ID of the system image to use with the new AVD.

Required. To obtain a list of available targets, use android list targets.

-c <path> or

The path to the SD card image to use with this AVD or the size of a new SD

Examples: -c path/to/sdcard or -c

-c <size>[K|M]

card image to create for this AVD.



Force creation of the AVD

By default, if the name of the AVD being created matches that of an existing AVD, the android tool will not create the new AVD or overwrite the existing AVD. If you specify the -f option, however, the android tool will automatically overwrite any existing AVD that has the same name as the new AVD. The files and data of the existing AVD are deleted.

-p <path>

Path to the location at which to create the directory for this AVD's files.


The skin to use for this AVD, identified by name or dimensions.

The android tool scans for a matching skin by name or dimension in the skins/ directory of the target referenced in the-t <targetID> argument. Example: -s HVGA-


delete avd

-n <name>

Delete the specified AVD.


move avd

-n <name>

The name of the AVD to move.


-p <path>

The path to the new location for the AVD.

-r <new-name>

Rename the AVD.

update avds

Recompute the paths to all system images.

0 0

Post a comment