HomeGetting StartedInstallation & SetupDevelopment & IntegrationDeployment & OperationsData ManagementTechnical SupportPlatform Updates
DocsInstallation & SetupInstall Stardogindex

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

PlatformMethodDescription
macOSHomebrewInstall CLI tools via brew install
Linuxapt/yumInstall CLI tools via package manager
WindowsZIPDownload and extract CLI tools
Any OSZIPManual 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