cli-backend-kwargs-controls-storage

IN premise

`_backend_kwargs(args)` is the single chokepoint that determines whether a command runs against SQLite or PostgreSQL; every `cmd_*` function must spread its return value into the corresponding `api.*` call

Summary

All storage-layer routing flows through one function. When any CLI command needs to talk to the database, it calls _backend_kwargs to figure out which backend to use and how to connect. This means every command handler must pass those settings through — if one forgets, it silently hits the wrong database or fails entirely.

Details

Sourceentries/2026/05/11/reasons_lib-cli.md