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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now