The Command Line Interface (CLI) provides functionalities for developing Tizen applications without the Tizen Studio. It includes the entire development process from creating the project to running the application. This topic describes the Tizen Studio CLI commands that are used differently when working with TV 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 TV applications.
To use the Tizen Studio CLI for developing TV applications, you need:

Figure 1. Web CLI package in Package Manager

Figure 2. Allow 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:
-s : Serial number of the device-t : Target nameYou 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".

Figure 3. "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 4. Application and package ID in "config.xml" file
The following is the documentation for the
installcommand in Tizen Studio common.
Figure 5. "install" command documentation
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:
-s : Serial number of the device-t : Target 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
Note
The following is the documentation for the
runcommand in Tizen Studio common.
Figure 7. "run" command documentation
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:
-s : Serial number of the device-t : Target nameDifferences from Tizen Studio common CLI:
-p option requires the application ID instead of the package ID.Note
The following is the documentation for the
uninstallcommand in Tizen Studio common.
Figure 8. "uninstall" command documentation
This section describes how to use the CLI to import an existing ".wgt" file and repackage it using your own certificate.
Configure the default certificate profile path.
Use the cli-config command with the following syntax:
tizen cli-config -g "default.profiles.path=<Your workspace directory>\.metadata\.plugins\org.tizen.common.sign\profiles.xml"
Example:
tizen cli-config -g "default.profiles.path=C:\Users\User\my_workspace\.metadata\.plugins\org.tizen.common.sign\profiles.xml"
Note
The following is the documentation for the
cli-configcommand in Tizen Studio common.Figure 10. "cli-config" command documentation
Extract the content of the ".wgt" file using a compressed file management application, such as 7-Zip.

Figure 11. Extract ".wgt" file contents
In the unzipped content, delete the "author-signature.xml" and "signature1.xml" files.

Figure 12. Delete signature files
Rebuild the project using the build command with the following syntax:
tizen build-web -- [Your Project Path]
The build result can be found in the "<Your Project Path>/.buildResult" folder.
Example:
tizen build-web -- D:\CLI_TEST\BasicProject

Figure 13. Project rebuilding example
Note
The following is the documentation for the
buildcommand in Tizen Studio common.
Figure 14. "build" command documentation
Repackage the project as a ".wgt" file, using the package command with the following syntax:
tizen package -t wgt -s [Certificate profile name] -- [Project build output path]
Certificate profile name: the security profile name.
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.

Figure 15. Certificate profile name
Project build output path: Path to the ".buildResult" folder that was created when the project was built.
Example:
tizen package -t wgt -s myCert -- D:\CLI_TEST\BasicProject\.buildResult

Figure 16. Project repackaging example

Figure 17. Repackaged ".wgt" file
Note
The following is the documentation for the
packagecommand in Tizen Studio common.
Figure 18. "package" command documentation