Microservices can be also exported using Talend CommandLine is
particularly useful for automated scripted deployments and Continuous Integration. This
example show how to build and export services using Talend CommandLine.
Procedure
First, login setup the options to connect to your projects by initiating a
session using initRemote command as follows:
initRemote AdminServerURL -ul “userName” -ul
“password”
Logon to your project using the command: logonProject -pn
PROJECTNAME
talend> logonProject -pn SERVICES
The Talend CommandLine will execute and check out the whole project into the Talend CommandLine local workspace. It will show the message logged on PROJECT
NAME once completed, as show below.
Enter the command listRoute to obtain a complete list of
Routes.
talend> listRoute
All the routes that exist in the project will be listed as shown below.
Microservices can be exported as Zip containing the
Windows and Linux startup scripts. To export a Route as a microservice, enter
the following command: buildRoute ROUTE_NAME -af MicroService -dd
DESTINATION_FOLDER -bt NAME -az