Skip to main content Skip to complementary content

Talend CommandLine Integration

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

  1. 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”
    talend> initRemote http://xxx:808/org.talend.administrator -ul “dev1@company.com” -up “dev1”
  2. 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.

  3. 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.

  4. 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
    talend> buildRoute  CustomerRestServiceProvider -dd C:/export/builds -az

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!