Command line interface

The Raphtory CLI tool is included in the Python package and allows you to interact directly with the Raphtory server. This is useful for experimentation and scripting.

Server

The server subcommand starts the GraphQL server with the specified configuration.

CommandParameter(s)Description
-h, --helpShow the help message and exit
--work-dirWORK_DIRWorking directory
--cache-capacityCACHE_CAPACITYCache capacity
--cache-tti-secondsCACHE_TTI_SECONDSCache time-to-idle in seconds
--log-levelLOG_LEVELLog level
--tracingEnable tracing
--tracing-levelTRACING_LEVELSet the tracing level. Available options are: COMPLETE, ESSENTIAL, MINIMAL.
--otlp-agent-hostOTLP_AGENT_HOSTOTLP agent host
--otlp-agent-portOTLP_AGENT_PORTOTLP agent port
--otlp-tracing-service-nameOTLP_TRACING_SERVICE_NAMEOTLP tracing service name
--auth-public-keyAUTH_PUBLIC_KEYPublic key for auth
--auth-enabled-for-readsEnable auth for reads
--config-pathCONFIG_PATHOptional config path
--create-indexEnable index creation
--portPORTPort for Raphtory to run on, defaults to 1736
--timeoutTIMEOUTTimeout for starting the server in milliseconds. Defaults: 180000ms

Tracing

Tracing provides the following levels of verbosity:

  • COMPLETE - Provides full traces for each query.
  • ESSENTIAL - Tracks the following key functions: addEdge, addEdges, deleteEdge, graph, updateGraph, addNode, node, nodes, edge, edges.
  • MINIMAL - Provides summary execution times.

For more details on tracing configuration and other server options, see Advanced Server Settings.

Helper functions

Schema

The Schema subcommand prints the current GraphQL schema.

Version

Access the version of raphtory