CLI Installation
This section describes how to install Stardog CLI tools.
Stardog CLI tools (stardog and stardog-admin commands) allow you to connect to and manage remote Stardog servers. Choose your operating system below to get started.
Looking to run a Stardog server? See Server Installation.
Requirements
Stardog CLI tools require Java 21. To check your version:
$ java -version
Java 21 can be downloaded from Adoptium, Microsoft OpenJDK, or Oracle.
Installation Options
| Platform | Method | Description |
|---|---|---|
| macOS | Homebrew | Install CLI tools via brew install |
| Linux | apt/yum | Install CLI tools via package manager |
| Windows | ZIP | Download and extract CLI tools |
| Any OS | ZIP | Manual download for any platform |
After Installation
After installing CLI tools, you can connect to any Stardog server:
# Query a remote server
$ stardog query -s http://my-stardog-server:5820 mydb "SELECT * WHERE { ?s ?p ?o } LIMIT 10"
# Check server status
$ stardog-admin --server http://my-stardog-server:5820 server status