Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 960 Bytes

install.md

File metadata and controls

32 lines (22 loc) · 960 Bytes

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