Commands Overview
All commands accept these global flags:
| Flag |
Description |
--verbose / -v |
Set log level to DEBUG |
--quiet / -q |
Set log level to ERROR |
Available commands
| Command |
Description |
init |
Create a new database |
sync |
Scan and index project files |
search |
Search entities by regex |
info |
Inspect entity details |
resolve |
Trace import chains to original definition |
subclasses |
Find direct or transitive subclasses |
pin-inheritance |
Disambiguate unresolved base classes |
config |
Read or write configuration |
Typical workflow
# Setup
deputy init
deputy sync
# Query
deputy search "MyClass"
deputy info mypackage.module.MyClass
deputy resolve mypackage.aliases.MyClass
# Inheritance
deputy subclasses mypackage.module.MyClass
deputy pin-inheritance mypackage.module.MyClass Base src/module.py:12