[resolved] initLocal CommandLine Commads

Highlighted
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
Highlighted
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

View solution in original post


All Replies
Highlighted
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.
Highlighted
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
Highlighted
One Star

Re: [resolved] initLocal CommandLine Commads

infact it always just says added_command with all the commands i enter.
Highlighted
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

View solution in original post

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

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog