CLI Titanium, Android, iOS

Titanium

For Titanium you can use the appc or the ti command line NPM client. The ti client is the open source version and the one I use. You use it together with the alloy client. Here are some commands that I use a lot.

Create a new alloy project

ti create -t app -p android,ios --id my.app.id
# Answer the questions
# Then from inside the generated directory:
alloy new

Location of AndroidManifest.xml for Titanium >= 9:

build/android/app/build/intermediates/merged_manifests/debug/

Location of APK for Titanium >= 9:

build/android/app/build/outputs/apk/

Development Android keystore

~/.titanium/mobilesdk/linux/9.0.3.GA/android/dev_keystore
~/Library/Application\ Support/Titanium/mobilesdk/osx/9.0.3.GA/android/dev_keystore

Android

List all emulators

emulator -list-avds

List all devices

adb devices

Uninstall app

adb -s [DEVICE_ID] uninstall [APP_ID]

Send a broadcast

Note: make sure you have an emulator with Google API's instead of one with Google Play!

adb root
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -p [APP_ID]

iOS

List all simulators:

xcrun simctl list