[resolved] initLocal CommandLine Commads

One Star

[resolved] initLocal CommandLine Commads

Hi,
I am trying to export my Job Item from the talend using commandline. But whenever I connect locally i.e use 
talend> initLocal
ADDED_COMMAND 0
I get added_command with every legal command I enter. So could you please tell me on how to connect properly and export the job item because as of now when I try it, it just gives me added_command with the next number and does not export the item.

Accepted Solutions
Community Manager

Re: [resolved] initLocal CommandLine Commads

Hi
After you initialize  a remote connection, you need to log into a remote project next:
talend>logonProject -pn projectName -ul user@talend.com -up mypassword

and then, export all the items:
talend>exportItems d:/allItems.zip -d

or export the certain item by adding the filter condition.
talend>exportItems d:/myJobName.zip -d -if label=myJobName

BRS
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Moderator

Re: [resolved] initLocal CommandLine Commads

Hi,
Have you checked Talend CommandLine Feature?
https://help.talend.com/search/all?query=CommandLine+features&content-lang=en
Can you export your job item successfully by manual?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] initLocal CommandLine Commads

Hi,
Yeah I did refer to all online documentation including that link. And yes, I can manually export the item but when I use command line, it gives weird errors.
Waiting for your reply.
Kunal
One Star

Re: [resolved] initLocal CommandLine Commads

infact it always just says added_command with all the commands i enter.
Community Manager

Re: [resolved] initLocal CommandLine Commads

Hi
After you initialize  a remote connection, you need to log into a remote project next:
talend>logonProject -pn projectName -ul user@talend.com -up mypassword

and then, export all the items:
talend>exportItems d:/allItems.zip -d

or export the certain item by adding the filter condition.
talend>exportItems d:/myJobName.zip -d -if label=myJobName

BRS
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] initLocal CommandLine Commads

infact it always just says added_command with all the commands i enter.

Maybe you started the Command Line tools in server mode, which can take several commands at a time. The message you get means the command has been added to execution list and will be executed. 

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download