List installed sdk package via command line

I want to list the installed sdk packages by command lines.(For some reasons I cannot use the GUI)

I have done some research and found out several commands to list the available packages on the remote server, but I fail to find any command to list the installed sdk packages yet.

  • bind/unbind service example (android)
  • Vertically centering a view in Android
  • Android: How to initialize MediaRecorder without a valid surface for video preview?
  • ActionBarCompat - how to use it
  • Android .xml files: Why do predefined colors not work for me?
  • Drawing a rounded hollow thumb over arc
  • Thanks

    Related posts:

    createWindowSurface failed: EGL_BAD_MATCH?
    Mediaplayer Cutting Off Sound Too Soon
    Android TextView not selectable in CoordinatorLayout? (TextView does not support text selection. Sel...
    Out of memory error: Java heap memory on Android Studio
    CardView goes on top of FrameLayout, but declared first
    Android Flip ImageView Vertically
  • Android Studio Gradle Issue: OutOfMemoryError: PermGen space
  • Android Studio suddenly cannot resolve symbols
  • Show splash screen image with auto fit
  • RelativeLayout “Couldn't resolve resource…” Android
  • How do I find the DNS servers in Android from a Java program?
  • values-21, values-22 or values-xx folder is gone after Android Studio 1.0
  • 4 Solutions collect form web for “List installed sdk package via command line”

    With Android SDK Tools 25.2.3 (and higher):

    $ANDROID_HOME/tools/bin/sdkmanager --list


    As described in $ANDROID_HOME/tools/android list –help

    • list : Lists existing targets or virtual devices.
    • list avd : Lists existing Android Virtual Devices.
    • list target : Lists existing targets.
    • list device : Lists existing devices.
    • list sdk : Lists remote SDK repository.

    I guess you are looking for this:

    $ANDROID_HOME/tools/android list target

    You can learn more on the android tool in the Command Line Reference.

    Good luck!

    It’s not quite a listing, but the files give details of the provenance. I’m using this to compare SDKs on different machines:

    for i in $(find -name; do
      if [ -e ../other.sdk/$i ] ; then
        echo ========================= $i
        diff -wu $i ../other.sdk/$i | grep -v Pkg.License

    I strip Pkg.License because it’s hyoooj.

    On my mac just sdkmanager --list was not working, path needed to be specified.

    Using android studio default SDK location the path is ~/Library/Android/sdk/tools/bin/sdkmanager --list

    As mentioned by @tnissi this is for Android SDK Tools 25.2.3 (and higher).

    Or add the path by: export PATH=$PATH:~/Library/Android/sdk/tools/bin

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.