The Command Line Interface (CLI) provides functionalities for developing Tizen applications without the Tizen Studio. This topic describes the Tizen Studio CLI commands for packaging, installing, and running applications, and how they are used when working with SSSP applications.
If you prefer a command line interface to the graphical Tizen Studio window, you can use the Command Line Interface (CLI) tool during the entire development process.
The Tizen Studio TV Extension supports all of the Tizen Studio common CLI commands, but some commands are used differently when working with SSSP applications than with mobile or wearable applications.
To use the Tizen Studio CLI for developing SSSP applications, you need:
Tizen Studio 1.1 or higher
"Web CLI" package installed from the Tizen SDK tools in Package Manager
Figure 1. Web CLI package in Package Manager
Valid certificate profile
If you do not have one already, create a certificate profile.
To allow installing your applications on the test emulator or device
In the Tizen Studio Device Manager, right-click the connected emulator or device and select "Permit to install applications".
Figure 2. Allow installing applications
Example:
Set the default certificate profile directory:
tizen cli-config -g "default.profiles.path=C:UsersUsermy_workspace.metadata.pluginsorg.tizen.common.signprofiles.xml"
Options:
<key>=<value>
: CLI configuration key and value to set.default.profiles.path=<profiles.xml file path>
: Default certificate profile pathdefault.sdb.timeout=<timeout value>
: Default SDB connection timeout. The default is 60000 milliseconds.-d
, --delete <key>
: CLI configuration key and value to remove-g
, --global
: Sets the specified option globally (for all installed SDKs on your computer).-l
, --list
: Lists all CLI configuration keys and values.For more information, see Setting Configuration Options for the common Tizen CLI.
Example:
Before you can create an application package from a project, build the project:
tizen build-web -- D:CLI_TESTBasicProject
Options:
-out
, --output <directory name>
: Output directory name.-- <project path>
: Project directoryFor more information, see Building the Project for the common Tizen CLI.
Example:
To package the “BasicProject” project into the “BasicProject.buildResult” directory:
tizen package -t wgt -s myCert -- D:CLI_TESTBasicProject.buildResult
Options:
-t
, --type wgt
: Tizen Web package-s
, --sign <certificate profile>
: Certificate profile name-- <output path>
: Package output pathTo find your certificate profile name, in the Tizen Studio menu, select "Tools > Certificate Manager", and find the name of the active profile in the "Certificate Profile" panel.
Figure 3. Certificate profile name
Differences from Tizen Studio common CLI:
For more information, see Packaging an Application with Signing for the common Tizen CLI.
Example:
You can install the "BasicProject.wgt" application on a device :
tizen install -s <device IP>:<Port> --name BasicProject.wgt -- D:BasicProject tizen install -s xx.xx.xx.xx:26101 --name BasicProject.wgt -- D:BasicProject
Options:
-n
, --name <package name>
: Application package file name-s
, --serial <serial number>
: Device serial number-t
, --target <target name>
: Target device name-- <file path>
: Package file pathYou can retrieve the serial number and target name using the sdb devices
command. In the following example, the the connected device IP is "107.109.204.219" and the target name is " PH49F-P".
Figure 4. "sdb devices" command example
Differences from Tizen Studio common CLI:
Note
If the application does not install properly, check that the application ID and package ID information exists in the "config.xml" file.
![]()
Figure 5. Application and package ID in "config.xml" file
For more information, see Installing the Application on a Target for the common Tizen CLI.
Example:
You can run the "BasicProject.wgt" application on a device :
ttizen run -s <device IP>:26101 -p wpktTnxr5L.BasicProject
ttizen run -s xx.xx.xx.xx:26101 -p wpktTnxr5L.BasicProject
Options:
-p
, --pkgid <application id>
: Application ID-s
, --serial <serial number>
: Device serial number-t
, --target <target name>
: Target device nameDifferences from Tizen Studio common CLI:
-p
option requires the application ID instead of the package ID.Figure 6. Application ID in "config.xml" file
For more information, see Running the Application on a Target for the common Tizen CLI.
Example:
You can uninstall the "wpktTnxr5L.BasicProject" application from device :
tizen uninstall -s <device IP>:26101 -p wpktTnxr5L.BasicProject
tizen uninstall -s xx.xx.xx.xx:26101 -p wpktTnxr5L.BasicProject
Options:
-p
, --pkgid <application id>
: Application ID-s
, --serial <serial number>
: Device serial number-t
, --target <target name>
: Target device nameDifferences from Tizen Studio common CLI:
-p
option requires the application ID instead of the package ID.For more information, see Uninstalling the Application on a Target for the common Tizen CLI.
You can repackage an existing ".wgt" file using your own certificate profile:
Figure 7. Delete signature files