CLI¶
cli
¶
CLI entry point for the ComfyUI Auto-Installer.
Provides commands: install, update, download-models, info, scan-models. When run without arguments, launches the interactive TUI. Uses Typer for a clean, auto-documented CLI interface.
main()
¶
Entry point: TUI if no args, Typer CLI otherwise.
Source code in src/cli.py
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).'), reinstall=typer.Option(False, '--reinstall', help='Clean reinstall: removes ComfyUI and venv but preserves user data (models, custom nodes, output).'))
¶
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.'), nodes=typer.Option('full', '--nodes', '-n', help="Custom nodes bundle: 'minimal', 'umeairt', or 'full'."))
¶
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
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 | |
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
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | |