Reference
Command-line interface (CLI)
Use legra to work with data, manage access, and inspect your installation.
Choose the task you need below. Each reference describes its own arguments and
examples; shared options live in Command context.
Data
- Query: read data with SPARQL
- Update: insert or delete facts
- Upload: import RDF files
- Download: export workspace data
- Search: find resources by text
- Format: format a statement
- Validate: check statement syntax
- Provenance: inspect the explanation for a fact
Collaboration
- Branches: separate and combine changes
- Workspaces: create and select workspaces
- Membership: invite people and manage access
- Tasks: track work and retrieve results
- Account: sign in and manage devices
Setup and integrations
- Nodes: inspect connections and health
- Version: check your installed version
- Upgrade: update Legra
- Completions: configure shell completion
- MCP: connect an AI tool
Run legra <command> --help for the options accepted by your installed version.
Start with the Quickstart for a complete first query.