Smartface CLI Tool
This Node.js project handles the publishing process of the Smartface Framework.
Other features will be integrated in the future, such as emulator, drag&drop interface integration and possibly more.

Requirements
Node.js & Npm
Click to install node.js
Install
npm install smartface -g --production
If you want install from sources, you can check installations.md
Usage
You can see more informations to use.
smfc -h
You can use on interactive mode
smfc -i
Basic parameters
If you want to publish, you must pass these arguments
- task
Task that will be run. Supported tasks: 'android-full-publish', 'ios-full-publish'
Example task
--task=$(TASK) , --task=android-full-publish
- projectRoot
Your project root folder. You can also use relative paths.
Example projectRoot
--projectRoot=$(PROJECT_ROOT) , --projectRoot=../smfc-sample
Optional parameters
You can use optional parameters.
- licenseFile
Your license file path
Example licenseFile
--licenseFile=$(LICENSE) , --licenseFile=/home/Smartface/license.xml
- java
Java 1.7 wil be needed for the apk file operations. If you do not set this parameter, the tool will try to find Java 1.7, and use that version if it can find one.
Example java
--java=$(JAVA) , --java=/usr/bin/java
- inputApk
Smartface Player apk for ARM. You can set one of the arm-players of Smartface.
Example inputApk
--inputApk=$(INPUT_APK) , --inputApk=/home/Smartface/SmartfacePlayer.apk
- inputApkx86
Smartface Player apk for x86. You can set one of the x86-players of Smartface.
Example inputApkx86
--inputApkx86=$(INPUT_APK_x86) , --inputApkx86=/home/Smartface/SmartfacePlayer-x86.apk
- inputZip
Smartface Player zip file for iOS. You can set one of the iOS-players of Smartface.
Example inputZip
--inputZip=$(INPUT_ZIP) , --inputZip=/home/Smartface/SmartfacePlayer.zip
- profile
ARM or x86 profiles that will be published.
* that means all profiles
Example profile
--profile=$(PROFILE) , --profile=arm:Default,hdpi;x86:*
- maxJavaMemory
Java to be used max memory while running.
Example maxJavaMemory
--maxJavaMemory=$(MAX_JAVA_MEM) , --maxJavaMemory=512m
Example logLevel
--logLevel=$(LOG_LEVEL) , --logLevel=debug
- logFile
You can logging to specific file. You can also use relative paths.
Example logFile
--logFile=$(LOG_FILE) , --logFile=../smfc-sample/log/some.log
- logStdOut
You can logging on console.
If logLevel not to be set. you can not log on console. Because logLevel is off.
Example logStdOut
--logStdOut=$(LOG_STDOUT) , --logStdOut=true
Example Usage
iOS Publish
smfc --task=ios-full-publish --projectRoot=../smfc-sample
smfc --task=ios-full-publish --projectRoot=../smfc-sample --logLevel=debug --logFile=../smfc-sample/log/ios.log
Android Publish
smfc --task=android-full-publish --projectRoot=../smfc-sample
smfc --task=android-full-publish --projectRoot=../smfc-sample --logLevel=debug --logFile=../smfc-sample/log/android.log --maxJavaMemory=512m --profile="arm:Default;x86:hdpi"