ComfyUI-Manager/cm_cli
Dr.Lt.Data dcd5c00794 feat(cli): add update-cache command, purge reinstall fallback, and batch failure tracking
Add `cm-cli update-cache` command that force-fetches all remote data
and populates local cache in blocking mode. Bypasses pip/offline guards
in get_data_by_mode and get_cnr_data by directly fetching channel JSON
files and calling reload('remote'). Solves permanent cold-start issue
where pip-installed cm-cli could never populate CNR cache without
running the web server first.

Add UnifiedManager.purge_node_state() to both glob and legacy packages
for reinstall categorization mismatch (e.g. unknown→nightly). Includes
path traversal protection via commonpath, root directory guard,
comfyui-manager self-protection, and finally-guarded dictionary cleanup.

Add NodeInstallError exception and batch failure tracking to
for_each_nodes: reinstall propagates install failures via
raise_on_fail, for_each_nodes catches NodeInstallError, tracks
failed nodes, reports aggregate summary, and exits non-zero.

Remove debug print in install_node.
Bump version to 4.1b5.

E2E verified:
- update-cache: empty cache (5 lines) → populated (7815 lines)
- reinstall batch: 2 packs, 1 failure → continues to 2nd → summary + exit 1
2026-03-15 09:34:12 +09:00
..
__init__.py refactor(cli): move cm_cli to top-level package and remove dead cli-only-mode (#2548) 2026-01-27 19:42:35 +09:00
__main__.py feat(cli): add update-cache command, purge reinstall fallback, and batch failure tracking 2026-03-15 09:34:12 +09:00