How to login to Sidekick with command line interface


#1

Hello,

Is there a way to login with command line, something like "tns login "? We want to integrate Sidekick cloud build with our Jenkins server. We need command line support.

Thank you,
Yu


#2

Hello @Eazy ,

I believe that we have already addressed this question through a separate support channel, nevertheless, I will share the response here as well.

To avoid the browser popup when loging in the NativeScript CLI and thus be able to automate the process for a CI, you should use the following command: $ tns dev-login <username> <password>

I also recommend that you add the $ tns accept eula command to your Jenkins. This way the CI will not break when a new EULA is introduced or when the machine (slave) used to build is changed.

I hope this helps.


#3

Yes. Thanks for the help. It works!