Skip to content

Commit

Permalink
Update subcommand docs. (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsspriyansh authored Dec 15, 2024
1 parent 675cdc4 commit 8e9055c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/subcommands/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@ Run the below command to connect to a real device wirelessly:
```sh
npx @nightwatch/mobile-helper android connect --wireless
```

### 2. Launch an Android Virtual Device

Run the below command to launch an AVD:
```sh
npx @nightwatch/mobile-helper android connect --emulator

# with configs
npx @nightwatch/mobile-helper android connect --emulator [--avd <avd_name>]
```

**Configs**

| Config | Description |
| ------------------ | ------------------------- |
| --avd <avd_name> | Name of the AVD to launch |
7 changes: 7 additions & 0 deletions docs/subcommands/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ Run the below command to create a new AVD:
```sh
npx @nightwatch/mobile-helper android install --avd
```

### 3. Install a system image

Run the below command to install a new system image:
```sh
npx @nightwatch/mobile-helper android install --system-image
```
23 changes: 23 additions & 0 deletions docs/subcommands/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,26 @@ Run the below command to delete an AVD:
```sh
npx @nightwatch/mobile-helper android uninstall --avd
```

### 2. Uninstall a system image

Run the below command to uninstall a system image:
```sh
npx @nightwatch/mobile-helper android uninstall --system-image
```

### 3. Uninstall an app

Run the below command to uninstall an app from a real device or an AVD:
```sh
npx @nightwatch/mobile-helper android uninstall --app

# with configs
npx @nightwatch/mobile-helper android uninstall --app [--deviceId <device_id>]
```

**Configs**

| Config | Description |
| ------------------------------ | ------------------------------------------------- |
| --deviceId \| -s <device_id> | Id of the device to uninstall the app from |

0 comments on commit 8e9055c

Please sign in to comment.