Command Line Interface
command line interface 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 tv applications related info tizen studio cli commands 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 tv applications than with mobile or wearable applications prerequisites to use the tizen studio cli for developing tv applications, you need tizen studio 1 1 or higher "web cli" package installed from the tizen sdk tools 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" setting configuration options example set the default certificate profile directory tizen cli-config -g "default profiles path=c \users\user\my_workspace\ metadata\ plugins\org tizen common sign\profiles xml" options <key>=<value> cli configuration key and value to set for example default profiles path=<profiles xml file path> default certificate profile path default 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 building projects example before you can create an application package from a project, build the project tizen build-web -- d \cli_test\basicproject options -out, --output <directory name> output directory name by default, the build result is placed in the <project path="">/ buildresult directory -- <project path> project directory for more information, see building the project for the common tizen cli packaging applications example to package the “basicproject” project into the “basicproject buildresult” directory tizen package -t wgt -s mycert -- d \cli_test\basicproject\ buildresult options -t, --type wgt tizen web package -s, --sign <certificate profile> certificate profile name -- <output path> package output path to 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 differences from tizen studio common cli only " wgt" files can be installed on a tv for more information, see packaging an application with signing for the common tizen cli installing applications example you can install the "basicproject wgt" application on a tv emulator in 2 ways tizen install -s emulator-26101 --name basicproject wgt -- d \basicproject tizen install -t t-1031-1 --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 path you can retrieve the serial number and target name using the sdb devices command in the following example, the serial number of the connected device is "emulator-26101" and the target name is "t-1031-1" differences from tizen studio common cli only " wgt" files can be installed on a tv noteif the application does not install properly, check that the application id and package id information exists in the "config xml" file for more information, see installing the application on a target for the common tizen cli running applications example you can run the "0ifisz74ep basicproject" application on a tv emulator in 2 ways tizen run -s emulator-26101 -p 0ifisz74ep basicproject tizen run -t t-1031-1 -p 0ifisz74ep basicproject options -p, --pkgid <application id> application id -s, --serial <serial number> device serial number -t, --target <target name> target device name differences from tizen studio common cli to run tv applications, the -p option requires the application id instead of the package id you can find the application id in the "config xml" file for more information, see running the application on a target for the common tizen cli uninstalling applications example you can uninstall the "0ifisz74ep basicproject" application from a tv emulator in 2 ways tizen uninstall -s emulator-26101 -p 0ifisz74ep basicproject tizen uninstall -t t-1031-1 -p 0ifisz74ep basicproject options -p, --pkgid <application id> application id -s, --serial <serial number> device serial number -t, --target <target name> target device name differences from tizen studio common cli to uninstall tv applications, the -p option requires the application id instead of the package id you can find the application id in the "config xml" file for more information, see uninstalling the application on a target for the common tizen cli repackaging applications with a new certificate you can repackage an existing " wgt" file using your own certificate profile extract the content of the " wgt" file using a compressed file management application, such as 7-zip in the unzipped content, delete the "author-signature xml" and "signature1 xml" files build the project package the application using your certificate profile