# Unable to connect to Cloud Instance from CLI with google enabled account

**URL:** <https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453>\
**Category:** Support\
**Created:** [July 4, 2023, 4:32pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453 "2023-07-04T16:32:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanchanjot](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@kanchanjot](https://community.stardog.com/u/kanchanjot)\
**Post date:** [July 4, 2023, 4:32pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/1 "2023-07-04T16:32:13Z")

</div>

I am unable to connect to Cloud instance of stardog from CLI. The account login is via google sign up.

The error message received is authentication failure.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [August 7, 2023, 11:41am UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/2 "2023-08-07T11:41:49Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [September 15, 2023, 2:54am UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/3 "2023-09-15T02:54:42Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [October 28, 2023, 11:14am UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/4 "2023-10-28T11:14:58Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [December 15, 2023, 8:45pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/5 "2023-12-15T20:45:24Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [February 7, 2024, 4:59pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/6 "2024-02-07T16:59:21Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [April 4, 2024, 8:59pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/7 "2024-04-04T20:59:29Z")

</div>



---

<div class="post-metadata">

**Author:** ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)\
**Post date:** [July 3, 2024, 2:53pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/8 "2024-07-03T14:53:39Z")

</div>

Hello,

I apologize for the delay in responding. Hopefully you have already worked through the details of accessing your Stardog Cloud endpoint using our CLI tools, but I will go ahead and provide an answer here in case others are searching for this answer.

After logging in to your Stardog Cloud account and connecting to your Stardog instance, you need to create a CLI-specific user in the Stardog Studio application.

You will also need to [install Stardog](https://docs.stardog.com/install-stardog/) (which includes the CLI tools) on your local system.

Once you have created a user/password and you have the CLI tools installed, you can access your cloud instance via the CLI. We provide more info here: [Accessing API Endpoint | Stardog Documentation Latest](https://docs.stardog.com/stardog-cloud/accessing-api-endpoint)

If you want to run `stardog-admin` to send a command to your cloud endpoint, then you will need an admin user. The easiest way to create an admin user that you can use with the CLI is to create a new user (for example, `cli_admin`) in Studio and then assign the `cloud` role to that user.

Assuming the name of your Free endpoint is `sd-12345678`, you could then run the command `stardog-admin --server https://sd-12345678.stardog.cloud:5820 db list -u cli_admin` to get a list of your databases. If you need help with the Stardog CLI commands, please refer to the CLI on-line documentation (for example, [db list | Stardog Documentation Latest](https://docs.stardog.com/stardog-admin-cli-reference/db/db-list)).

In general, it is a best practice not to create such a powerful user that can be accessed via username/password. If possible, I recommend doing all your admin-level work (like creating databases) in Studio, and then creating a user with the least privileges possible that can be used with the `stardog` CLI commands (for example, for executing queries).

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![Oa\_Ga](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/oa_ga/32/2134_2.png) [@Oa\_Ga](https://community.stardog.com/u/Oa_Ga)\
**Post date:** [July 4, 2024, 6:42am UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/9 "2024-07-04T06:42:05Z")

</div>

Hello Paul

Thank you for sharing this information. I have now progressed further than before: I used this link: [Windows (Deprecated) | Stardog Documentation Latest](https://docs.stardog.com/install-stardog/windows-installation)  
In 'step 5' of this link it suggests that I should have a license! Since I am still on a trial version how do I acquire a license ?

---

<div class="post-metadata">

**Author:** ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)\
**Post date:** [July 4, 2024, 12:51pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/10 "2024-07-04T12:51:10Z")

</div>

We now provide a free trial version of the Stardog server in our [Stardog Cloud](https://cloud.stardog.com/) platform. This free version of Stardog includes a trial license.

You can install the Windows version of Stardog to get the CLI tools for use on your Windows workstation, but we no longer provide a trial license for on-premise installs of the Stardog server.

After you create your Stardog Cloud account, you will see a button to get a "New Stardog Cloud Endpoint". Push this and select the free option by pushing the "Get Stardog Free" button.

---

<div class="post-metadata">

**Author:** ![Oa\_Ga](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/oa_ga/32/2134_2.png) [@Oa\_Ga](https://community.stardog.com/u/Oa_Ga)\
**Post date:** [July 4, 2024, 2:36pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/11 "2024-07-04T14:36:19Z")

</div>

Hello Paul

I have been trying to use the Free Stardog Cloud and I have been having challenges connecting to the EndPoint !

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/e87fee67aeac32c610ec36670480bf3acdf45f41.png)

Please assist me with that because I have been unable to connect with local MS SQL server.

Also If am to get a licesence, is it possible that I can purchase a sigle license instead of being forced to get 5 from the onset?

Regards

---

<div class="post-metadata">

**Author:** ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)\
**Post date:** [July 5, 2024, 3:22pm UTC](https://community.stardog.com/t/unable-to-connect-to-cloud-instance-from-cli-with-google-enabled-account/4453/12 "2024-07-05T15:22:01Z")

</div>

Your questions are not about using the CLI to access your Stardog Cloud endpoint, so let's move this discussion back to the other [ticket](https://community.stardog.com/t/trouble-connecting-to-mssql-part-2/4984) where you've been discussing the specific issue of connecting to an external data source from your Stardog Free endpoint.
