diff --git a/cm-cli.py b/cm-cli.py index 5a2c8e65..007f562c 100644 --- a/cm-cli.py +++ b/cm-cli.py @@ -23,8 +23,8 @@ if not (len(sys.argv) == 2 and sys.argv[1] in ['save-snapshot', 'restore-depende f" [install|reinstall|uninstall|update|disable|enable|fix] node_name ... ?[--channel ] ?[--mode [remote|local|cache]]\n" f" [update|disable|enable|fix] all ?[--channel ] ?[--mode [remote|local|cache]]\n" f" [simple-show|show] [installed|enabled|not-installed|disabled|all|snapshot|snapshot-list] ?[--channel ] ?[--mode [remote|local|cache]]\n" - f" save-snapshot\n" - f" restore-snapshot \n" + f" save-snapshot ?[--output ]\n" + f" restore-snapshot \n" f" cli-only-mode [enable|disable]\n" f" restore-dependencies\n" f" clear\n") diff --git a/docs/en/cm-cli.md b/docs/en/cm-cli.md index c7dde9c9..6b625404 100644 --- a/docs/en/cm-cli.md +++ b/docs/en/cm-cli.md @@ -4,7 +4,8 @@ ``` --= ComfyUI-Manager CLI (V2.22) =- +-= ComfyUI-Manager CLI (V2.24) =- + python cm-cli.py [OPTIONS] @@ -12,12 +13,11 @@ OPTIONS: [install|reinstall|uninstall|update|disable|enable|fix] node_name ... ?[--channel ] ?[--mode [remote|local|cache]] [update|disable|enable|fix] all ?[--channel ] ?[--mode [remote|local|cache]] [simple-show|show] [installed|enabled|not-installed|disabled|all|snapshot|snapshot-list] ?[--channel ] ?[--mode [remote|local|cache]] - save-snapshot - restore-snapshot + save-snapshot ?[--output ] + restore-snapshot cli-only-mode [enable|disable] restore-dependencies clear - ``` ## How To Use? @@ -52,7 +52,7 @@ OPTIONS: Executing a command like `python cm-cli.py show installed` will display detailed information about the installed custom nodes. ``` --= ComfyUI-Manager CLI (V2.21.1) =- +-= ComfyUI-Manager CLI (V2.24) =- FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ ENABLED ] ComfyUI-Manager (author: Dr.Lt.Data) @@ -69,7 +69,7 @@ FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main Using a command like `python cm-cli.py simple-show installed` will simply display information about the installed custom nodes. ``` --= ComfyUI-Manager CLI (V2.21.1) =- +-= ComfyUI-Manager CLI (V2.24) =- FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json ComfyUI-Manager @@ -113,10 +113,11 @@ ComfyUI-Loopchain * `fix`: Attempts to fix dependencies for the specified custom nodes. ### 4. Snapshot Management -* `python cm-cli.py save-snapshot`: Saves the current snapshot. -* `python cm-cli.py restore-snapshot `: Restores to the specified snapshot. - * If a file exists at the snapshot path, it loads that snapshot. - * If no file exists at the snapshot path, it implicitly assumes the snapshot is located in ComfyUI-Manager/snapshots. +* `python cm-cli.py save-snapshot [--output ]`: Saves the current snapshot. + * With `--output`, you can save a file in .yaml format to any specified path. +* `python cm-cli.py restore-snapshot `: Restores to the specified snapshot. + * If a file exists at the snapshot path, that snapshot is loaded. + * If no file exists at the snapshot path, it is implicitly assumed to be in ComfyUI-Manager/snapshots. ### 5. CLI Only Mode diff --git a/docs/ko/cm-cli.md b/docs/ko/cm-cli.md index 9a6a8403..e7e0d4a8 100644 --- a/docs/ko/cm-cli.md +++ b/docs/ko/cm-cli.md @@ -4,7 +4,8 @@ ``` --= ComfyUI-Manager CLI (V2.21.1) =- +-= ComfyUI-Manager CLI (V2.24) =- + python cm-cli.py [OPTIONS] @@ -12,12 +13,11 @@ OPTIONS: [install|reinstall|uninstall|update|disable|enable|fix] node_name ... ?[--channel ] ?[--mode [remote|local|cache]] [update|disable|enable|fix] all ?[--channel ] ?[--mode [remote|local|cache]] [simple-show|show] [installed|enabled|not-installed|disabled|all|snapshot|snapshot-list] ?[--channel ] ?[--mode [remote|local|cache]] - save-snapshot - restore-snapshot + save-snapshot ?[--output ] + restore-snapshot cli-only-mode [enable|disable] restore-dependencies clear - ``` ## How To Use? @@ -53,7 +53,7 @@ OPTIONS: `python cm-cli.py show installed` 와 같은 코맨드를 실행하면 설치된 커스텀 노드의 정보를 상세하게 보여줍니다. ``` --= ComfyUI-Manager CLI (V2.21.1) =- +-= ComfyUI-Manager CLI (V2.24) =- FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ ENABLED ] ComfyUI-Manager (author: Dr.Lt.Data) @@ -70,7 +70,7 @@ FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main `python cm-cli.py simple-show installed` 와 같은 코맨드를 이용해서 설치된 커스텀 노드의 정보를 간단하게 보여줍니다. ``` --= ComfyUI-Manager CLI (V2.21.1) =- +-= ComfyUI-Manager CLI (V2.24) =- FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json ComfyUI-Manager @@ -115,8 +115,9 @@ ComfyUI-Loopchain ### 4. 스냅샷 관리 기능 -* `python cm-cli.py save-snapshot`: 현재의 snapshot을 저장합니다. -* `python cm-cli.py restore-snapshot `: 지정된 snapshot으로 복구합니다. +* `python cm-cli.py save-snapshot ?[--output ]`: 현재의 snapshot을 저장합니다. + * --output 으로 임의의 경로에 .yaml 파일과 format으로 저장할 수 있습니다. +* `python cm-cli.py restore-snapshot `: 지정된 snapshot으로 복구합니다. * snapshot 경로에 파일이 존재하는 경우 해당 snapshot을 로드합니다. * snapshot 경로에 파일이 존재하지 않는 경우 묵시적으로, ComfyUI-Manager/snapshots 에 있다고 가정합니다.