Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.09 KB

install.md

File metadata and controls

39 lines (27 loc) · 1.09 KB

Workflows of the install subcommand

Syntax

npx @nightwatch/mobile-helper android install FLAG [configs]

1. Install an APK

Run the below command to install an APK on a real device or an AVD:

npx @nightwatch/mobile-helper android install --app

# with configs
npx @nightwatch/mobile-helper android install --app [--deviceId <device_id>] [--path <path_to_apk>]

Configs

Config Description
--deviceId | -s <device_id> Id of the device to install the APK to
--path | -p <path_to_apk> Path to the APK file relative to the current working directory

2. Create a new Android Virtual Device

Run the below command to create a new AVD:

npx @nightwatch/mobile-helper android install --avd

3. Install a system image

Run the below command to install a new system image:

npx @nightwatch/mobile-helper android install --system-image