Skip to main content

query Command

Query persisted graph indexes.

Usage

# Query by entity type
batho query --root /path/to/repo --entity-type function --limit 50

# Query by file path
batho query --root /path/to/repo --file-path src/api.py

# Query by relationship type (with index rebuild)
batho query --root /path/to/repo --relationship-type calls --rebuild-index

Options

FlagDescription
--entity-typeFilter by entity type (function, class, method, etc.)
--file-pathFilter by specific file path
--relationship-typeFilter by relationship type (imports, calls, uses, defines)
--limitMaximum results to return
--rebuild-indexRebuild query index before executing