# Configure CLI to Use Remote Stardog

**URL:** <https://community.stardog.com/t/configure-cli-to-use-remote-stardog/1392>\
**Category:** Support\
**Created:** [November 15, 2018, 11:59pm UTC](https://community.stardog.com/t/configure-cli-to-use-remote-stardog/1392 "2018-11-15T23:59:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholsn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/nicholsn/32/284_2.png) [@nicholsn](https://community.stardog.com/u/nicholsn)\
**Post date:** [November 15, 2018, 11:59pm UTC](https://community.stardog.com/t/configure-cli-to-use-remote-stardog/1392/1 "2018-11-15T23:59:06Z")

</div>

Lets say I want to use the Stardog CLI from my laptop, but I want the default to point to my remote server rather than localhost.

I've seen `stardog.default.cli.server` referenced in the man pages (e.g., [Command Line Interface | Stardog Documentation Latest](https://www.stardog.com/docs/man/db-create)), but if I try setting this in a `stardog.properties` file in $STARDOG\_HOME, the CLI still points to localhost.

How can I go about configuring a remote server by default? STARDOG\_JAVA\_ARGS?

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [November 16, 2018, 12:29pm UTC](https://community.stardog.com/t/configure-cli-to-use-remote-stardog/1392/2 "2018-11-16T12:29:42Z")

</div>

STARDOG\_JAVA\_ARGS is indeed the correct answer.

```auto
export STARDOG_JAVA_ARGS="-Dstardog.default.cli.server=http://my.remote.server:5820"

```

---

<div class="post-metadata">

**Author:** ![nicholsn](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/nicholsn/32/284_2.png) [@nicholsn](https://community.stardog.com/u/nicholsn)\
**Post date:** [November 16, 2018, 2:53pm UTC](https://community.stardog.com/t/configure-cli-to-use-remote-stardog/1392/3 "2018-11-16T14:53:11Z")

</div>

Awesome, thanks!

Is there also a way to store a default username and password? And more generally, are there docs/cheatsheet for all of parameters that can be passed to STARDOG\_JAVA\_ARGS?

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [November 16, 2018, 3:00pm UTC](https://community.stardog.com/t/configure-cli-to-use-remote-stardog/1392/4 "2018-11-16T15:00:44Z")

</div>

The way to store user/pass would be to create a [Password file](https://www.stardog.com/docs/#_using_a_password_file).

I don't think we have one overarching doc regarding all of the available JVM args, but that's definitely something that would be worth compiling

---

<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:** [November 30, 2018, 3:00pm UTC](https://community.stardog.com/t/configure-cli-to-use-remote-stardog/1392/5 "2018-11-30T15:00:46Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
