Command Line Interface
The native CLI (command line interface) provides the functional tools for developing Tizen native applications without the Tizen IDE. It includes the entire developing process from creating to running and debugging the project. The CLI is located in the $<TIZEN_SDK_HOME>/tools/ide/bin directory. For developing an application using the CLI, add the CLI directory path to $PATH using the following command:
export PATH=$PATH:$<TIZEN_SDK_HOME>/tools/ide/bin
The CLI in the IDE provides functional commands for:
- Setting CLI configuration options
- Displaying a sub-command list
- Creating a project
- Building the project
- Packaging the project
- Installing the package
- Uninstalling the package
- Running the application
- Displaying version information
Note |
---|
To use the CLI, you need the Java Runtime Environment version 6 or higher. |
The following table lists the available CLI commands.
Command | Options | Description | Example |
---|---|---|---|
tizen cli-config |
tizen cli-config [-g|--global] <key>=<value> tizen cli-config -l | --list
|
Queries, sets, replaces, and unsets CLI setting options.
The key and the name are separated by an equal sign. The CLI configuration keys are:
|
|
tizen list |
tizen list native-project |
Shows what kind of template each profile supports, and the list corresponding with the given sub-command. |
|
tizen create |
tizen create native-project [-p|--profile <profile name>] [-t|--template <predefined template>] [-n|--name <project name>] [-- <project location>]
|
Creates a Tizen native project. If an option is empty, the default project is generated from the default template. |
|
tizen build-native |
tizen build-native [-a|--arch <architecture name>] [-c|--compiler <compiler name>] [-C|--configuration <configuration name>] [--]
|
Builds the Tizen native project with the default values (if you do not set the options). There are 3 options: architecture, compiler, and configuration. All the options are required and the default values are described in the CLI configuration file. |
|
tizen package |
tizen package [-t | --type <package type>] [-s | --sign <security profile name>] [-S, --strip <on|off>] [--]
|
Packages the Tizen application with signing. If there is a package file path in the options, the package is re-signed.
The Tizen application is signed with a certified profile named profiles.xml. You can create the default profile from the Tizen IDE, which generates the file in a hidden directory in your workspace (<Your workspace directory>/.metadata/.plugins/org.tizen.common.sign/profiles.xml). Set the path of the profile.xml file once before packaging the Tizen application (you can use the tizen cli-config command). |
|
tizen install |
tizen install <-t | -target <target name>> <-n | --name <package name>> [--]
|
Installs a Tizen application to a Tizen device. |
|
tizen uninstall |
tizen uninstall <-t | --target <target name>> <-p | --pkgid <package id>>
|
Uninstalls a Tizen application from a Tizen device. |
|
tizen run |
tizen run <-t | --target <target name>> <-p | --pkgid <package id>>
|
Runs the Tizen application. |
|
tizen version |
tizen version |
Prints the CLI version number of the executable and exits. |
|