Skip to content
Docsgr query

Command line

gr query

Ask the graph a question (search + typed walk, budgeted)

From the help of gr 0.2.16. gr help query prints it in full.

Ask the graph a question; print a budgeted slice of it.

gr query <question> [flags]
FlagWhat it does
--budget intanswer size in tokens (default 2000)
--depth inthops to walk (default 2, max 3)
--jsonprint the raw result
--kind stringonly start from nodes of this kind
--path stringonly start from nodes under this path prefix

Every command also takes --root <folder>, the project to act on. Without it, gr uses the git repository you are in, or else the current folder.

These docs describe Graphide 0.2.16, the latest release. Something wrong or missing? Tell us onDiscord or at hello@graphide.com.