In this tutorial, you will learn how to launch the CommandLine.
The goal is to create a script that will allow you to execute a Job from your Repository without starting either the Integration Studio or the Administration Center.
Prerequisite: Before starting this tutorial, you need to install and launch Talend Administration Center web application.
Commandline is the equivalent of Talend Studio without GUI.
To launch it, simply execute the commandline.bat file under Windows or the commandline.sh file under Linux, available from the root of your Commandline folder.
Commandline has three operating modes: Shell, Server, and Script.
If the commandline executable isn't stored at the root of your Commandline: type in the syntax shown in the screenshot in the StandaloneCommandline.bat
file.
Set the TISDirectory variable that defines the path to the directory in which your commandline is stored.
If you are using the Commandline script mode and store the scripts in a separate folder, you can use the ScriptFile variable as in the screenshot.
Set the ScriptFile variable that defines the path to the directory in which you stored your commandline scripts.
This will allow you to access the commandline application in shell mode,
which enables you to enter commands sequentially. If you enter the help
command, you can access the help as shown above.
In this screenshot, we connected to a project of Talend Administration Center and listed the jobs of this project.
Create the file allowing you to launch the commandline in Server mode:
Find out the commandline port set at installation (by default 8002)
Copy and paste StandaloneCommandline.bat file into your working directory.
Rename it ServerCommandline.bat
Open the renamed file and replace the character string "help" with "startServer -p 8002", where 8002 is the port on which your commandline application listens.