Command Line tool for Android and iOS [ adb and cfgutil ]
Well if you tech geek, you would be loving command line tools
I just love them.
and the top most reason is performance, its really fast , no gui, simply a command and done, no loading nothing
if you are a mobile tester or developer you must have followed certain steps to load you apk to your devices
Well in command line you just need adb in your system.
Once this is done the real magic will stat now:
adb --version | to see current version of adb installed
command 1: to see list of devices connected to your machine via USB
adb devices
sample response:
--------------------------
List of devices attached
a792d8460304 device
to see all the apps installed inside your device
adb shell pm list packages -f
to uninstall app
adb uninstall packageName "Package name as you can get from previous command"
example:
adb uninstall com.zerodha.coin
to install the app
adb install <pathToApk/Name.APK>
adb install "c:\temp\mycustomApp.apk"
reference : https://developer.android.com/studio/command-line/adb
I just love them.
and the top most reason is performance, its really fast , no gui, simply a command and done, no loading nothing
for Android
adb | android debug bridgeif you are a mobile tester or developer you must have followed certain steps to load you apk to your devices
- download the apk file in your system and move to your device memory after connecting with USB.
- then find that apk file and then install it and that too after approving the file manager app to do so.
- also for uninstalling, search the file, long select drop to uninstall and uninstall it.
Well in command line you just need adb in your system.
- Step 1(one time): Download adb in your mac/windows/unix
- Step 2(one time): if you are on windows platform, set the path of the adb inside your environment variables [refer here to know how to setup]
- Step 3(one time): enable USB debugging in mobile device [follow link to do so]
Once this is done the real magic will stat now:
adb --version | to see current version of adb installed
command 1: to see list of devices connected to your machine via USB
adb devices
sample response:
--------------------------
List of devices attached
a792d8460304 device
to see all the apps installed inside your device
adb shell pm list packages -f
to uninstall app
adb uninstall packageName "Package name as you can get from previous command"
example:
adb uninstall com.zerodha.coin
to install the app
adb install <pathToApk/Name.APK>
adb install "c:\temp\mycustomApp.apk"
reference : https://developer.android.com/studio/command-line/adb
for iOS
1. install apple configuration tools on mac from apple store App.
2. install cfgutil [command line tool for apple configurator]
In Apple Configurator 2 on your Mac, choose Install Automation Tools in the Apple Configurator 2 menu, click Install, then enter your administrator password.
walah!!! you are ready to shoot
cfgutil --version | See the vesrion
cfgutil list | list-devices
cfgutil remove-app <package name> | remove the app
cfgutil install-app <Path to .ipa file> | install the app
reference help : http://configautomation.com/cfgutil-man-page.html
Comments
Post a Comment