> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/android-appsec/setting-up-virtual-device/android-studio/emulator-setup/emulator-from-cli.md).

# Emulator from CLI

* The Android Emulator is installed inside the **Android SDK directory**, typically at:

```
/root/Android/Sdk/emulator
```

* Navigate to the Emulator Directory

```bash
cd /root/Android/Sdk/emulator
```

* To View Emulator Help Menu

```bash
./emulator --help
```

* List All Available Virtual Devices (AVDs)

```bash
./emulator -list-avds
```

* You can start an emulator in **two ways**:

```bash
emulator @Pixel_6 #Using the `@` symbol
```

or

```
emulator -avd Pixel_6 #Using the `-avd` flag
```
