SAP-samples / hana-developer-cli-tool-example

Learn how to build a developer-centric SAP HANA command line tool, particularly designed to be used when performing SAP HANA development in non-SAP tooling (for example from VS Code).
Apache License 2.0
90 stars 24 forks source link

Adopt remote Hana Cloud instance connect string #82

Closed JayChanggithub closed 2 years ago

JayChanggithub commented 2 years ago

Hi Support.

I'd like to adopt this tool to implement operate Hana Cloud DB also when had been through BTP/CF create Hana instance ready. However how to replace "default-services.json"(Use remove hana instance information) in actually. ?

jung-thomas commented 2 years ago

I'm sorry but I don't really understand your issue. You want to replace the default-services.json? I don't know what you mean by that. Perhaps you could describe in detail what you are trying do or what is going wrong.

JayChanggithub commented 2 years ago

I just wanna to request have anything possible no prompt to input password/username or any regarding that when i execute command. It's what i mean and also i go through documentation it will use default-admin-evn.json right? if so how to do can achieve my purpose?

jung-thomas commented 2 years ago

I'm sorry but I still really can't understand your request. Are you just asking if this tool can use the default-env.json? If so, yes that is exactly what it uses as described in the documentation:

https://github.com/SAP-samples/hana-developer-cli-tool-example#security

It can use the default-env.json, a .env or even .cdsrc-private.json. You can create a default-env.json with the connect command or create one from a service binding with the serviceKey command.

JayChanggithub commented 2 years ago

@jung-thomas,

Yes. That's what I want to ask. Thank for your clarification.