Stardog --server Unknown command --server error

When following this documentation Encryption in Transit | Stardog Documentation Latest - specifically:

stardog --server https://localhost:5820 server status

running the above I am getting this error:

$ ./stardog --server https://localhost:5821 server status
Unknown command --server
The detailed stack trace for the error is:
java.lang.UnsupportedOperationException: Unknown command --server
	at io.airlift.command.Help.help(Help.java:130)
	at io.airlift.command.Help.help(Help.java:59)
	at io.airlift.command.Help.run(Help.java:34)
	at io.airlift.command.Help.call(Help.java:40)
	at io.airlift.command.Help.call(Help.java:18)
	at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:56)
	at com.complexible.stardog.cli.CLI.main(CLI.java:121)

Hi,

The command in the docs has a typo, which we will be sure to fix. The actual command is stardog-admin --server https://localhost:5820 server status. Note that if you are actually running on localhost you don't need the --server argument.

Best,
Clark

Thanks Clark,

Just found the same. One more possible documentation bug on the same page - where it says:

Set the STARDOG_JAVA_ARGS environment variable to set the Truststore up in the Stardog CLI environment

 export STARDOG_JAVA_ARGS="-Djavax.net.ssl.trustStore=/path/to/my-truststore.jks -Djavax.net.ssl.trustStorePassword=changeit"

Should that bullet rather say - see ending

Set the STARDOG_JAVA_ARGS environment variable to set the Truststore up in the Stardog CLI environment in the /etc/stardog.env.sh

Hi Radu,

/etc/stardog.env.sh is only applicable to the server side of Stardog, which is where you would set the keystore through STARDOG_SERVER_JAVA_ARGS.

On the client side, you need to set the _trust_store via STARDOG_JAVA_ARGS in the CLI environment that you're using to connect. It's a very small but important distinction.