ag[?] [options] output Graphviz code

Tips

  • Dependencies include xdot . To install, sudo apt install xdot

  • To print a grapviz, use a[options] | xdot - . Example: ag $$ | xdot - . $$ means here (at current seek). agv does the same thing.

  • ag supports autocompletion


  • agg display current graph created with agn and age (see also ag-)
  • agf [addr] Show ASCII art graph of given function
    • After setting scr.html to true, agf can be used to export a visual graph to html.

  • agfl
  • agg[?] [kdi*] Print graph in ASCII-Art, graphviz, k=v, r2 or visual

  • Graph commands:

  • agc[format] [fcn addr] Function callgraph
  • agf[format] [fcn addr] Basic blocks function graph
  • agfd ?
    • Use agfd with viz-js library to render an SVG

  • agx[format] [addr] Cross references graph
  • agr[format] [fcn addr] References graph
  • aga[format] [fcn addr] Data references graph
  • agd[format] [fcn addr] Diff graph
  • agi[format] Imports graph
  • agC[format] Global callgraph
  • agR[format] Global references graph
  • agA[format] Global data references graph
  • agg[format] Custom graph
  • ag- Clear the custom graph
  • agn[?] title body Add a node to the custom graph
  • age[?] title1 title2 Add an edge to the custom graph
- Output formats:
- <blank>                 Ascii art
- v                       Interactive ascii art
- t                       Tiny ascii art
- d                       Graphviz dot
- j                       json ('J' for formatted disassembly)
- g                       Graph Modelling Language (gml)
- k                       SDB key-value
- *                       r2 commands
- w                       Web/image (see graph.extension and graph.web)