Android SDK via the Command Line

Mucking around with a build / Continuous Integration server on DigitalOcean. Here’s the command to get the Android SDK installed:

./android update sdk --no-ui --filter tools,platform-tools,build-tools-23.0.1,android-23,extra-android-m2repository,extra-android-support,extra-google-m2repository --dry-mode

Which says:

# ./android update sdk --no-ui --filter tools,plattory --dry-mode
Refresh Sources:
  Fetching https://dl.google.com/android/repository/addons_list-2.xml
  Validate XML
  Parse XML
  Fetched Add-ons List successfully
  Refresh Sources
  Fetching URL: https://dl.google.com/android/repository/repository-11.xml
  [...]
Packages selected for install:
- Android SDK Tools, revision 24.4
- Android SDK Platform-tools, revision 23.0.1
- Android SDK Build-tools, revision 23.0.1
- SDK Platform Android 6.0, API 23, revision 1
- Android Support Repository, revision 22
- Android Support Library, revision 23.0.1
- Google Repository, revision 22

Dry mode is on so nothing is actually being installed.

Remove the --dry-mode flag, and it should be good to go.