Common adb commands

adb install file.apk

adb will looks for any Android found and install on that

adb install -r file.apk

Install but allow replacing installed apps

adb install -g file.apk

Install & grant all runtime permissions

adb -d install -r file.apk

Install direct to connected USB & allow to replace existing app. If more than 1 device found then returns error.

adb -e install -r file.apk

Install direct to running Emulator & allow replacing existing app. If more than 1 device found then returns error.

adb -s serial_number install -r file.apk

Install direct to device with serial number as pointed.

adb devices -l

List all devices with descriptions

adb uninstall packagename

Uninstall a package from a device without keeping its data & cache

adb -d shell

Enter shell of direct USB connected device

adb -e shell

Enter shell of direct Emulator connected device

References: