CLI¶
cli
¶
CLI entry point for the ComfyUI Auto-Installer.
Provides commands: install, update, download-models, info. Uses Typer for a clean, auto-documented CLI interface.
install(path=typer.Option(Path.cwd(), '--path', '-p', help='Installation directory for ComfyUI.'), install_type=typer.Option('venv', '--type', '-t', help="Installation type: 'venv' (light) or 'conda' (full)."), verbose=typer.Option(False, '--verbose', '-v', help='Show detailed output (pip, git, etc.).'), nodes=typer.Option('full', '--nodes', '-n', help="Custom nodes bundle: 'minimal', 'umeairt', or 'full'."), yes=typer.Option(False, '--yes', '-y', help='Non-interactive mode: accept all defaults without prompting.'), cuda_version=typer.Option('', '--cuda', help="Force a specific CUDA version tag (e.g. 'cu124', 'cu130', 'cpu'). Bypasses auto-detection."), skip_nodes=typer.Option(False, '--skip-nodes', help='Skip custom node installation (useful for Docker builds where nodes are handled at runtime).'))
¶
Install ComfyUI with all dependencies and custom nodes.
Source code in src/cli.py
update(path=typer.Option(Path.cwd(), '--path', '-p', help='Root directory of existing ComfyUI installation.'), verbose=typer.Option(False, '--verbose', '-v', help='Show detailed output (pip, git, etc.).'), yes=typer.Option(False, '--yes', '-y', help='Non-interactive mode: accept all defaults without prompting.'))
¶
Update ComfyUI, custom nodes, and dependencies.
Source code in src/cli.py
download_models(path=typer.Option(Path.cwd(), '--path', '-p', help='Root directory of ComfyUI installation.'), catalog_file=typer.Option(None, '--catalog', '-c', help="Path to model catalog JSON. Defaults to 'scripts/model_manifest.json' in install path."), bundle=typer.Option('', '--bundle', '-b', help="Specific bundle to download (e.g. 'FLUX'). Empty = interactive menu."), variant=typer.Option('', '--variant', help="Specific variant to download (e.g. 'fp16', 'GGUF_Q4'). Requires --bundle."), verbose=typer.Option(False, '--verbose', '-V', help='Show detailed output.'))
¶
Download model packs for ComfyUI from the unified catalog.
Source code in src/cli.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | |
info()
¶
Display system information (GPU, Python, platform).
Source code in src/cli.py
scan_models(path=typer.Option('.', '--path', '-p', help="ComfyUI install path containing the 'models' directory."), verbose=typer.Option(False, '--verbose', '-v', help='Show all scanned files, not just unsafe ones.'))
¶
Scan model files for malicious pickle code.
Source code in src/cli.py
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | |