Using the Command Line Tool

Product Reference: Smartface Command Line Interface (CLI)

This Node.js CLI tool handles various tasks of the Smartface Framework, including the publishing process to create native iOS and Android apps from JavaScript code. You can use any platform to develop native mobile apps.


For Debian or Ubuntu

Certain libraries must be installed to publish for Android. Run the command below from your terminal:Shell

sudo apt-get install -y lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

For All Platforms

These requirements are for all platforms like Linux, macOS and Windows systems.

  • Java SE Development Kit 7u79

  • Android Tools (Optional) : If you want to immediately publish the output to a device or a running emulator instance, you also need to install Android Tools.

  • Node.js

  • git (Optional) :If you want to download sample projects, you need to install git.

Smartface Installation

The command for installation is :

npm install smartface -g


This tool creates publishing output for both Android and iOS for Smartface Cloud projects. The output is APK file for Android and Xcode project file for iOS. You can publish your project by using either interactive mode or with the parameters. Easiest way to start using the CLI tool is via the interactive mode :

smfc -i