{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"}],"enrichment":{"capability":"cmd2 is a Python framework for building interactive command-line applications with built-in tab completion, help text generation, scripting, and automation features.","skillfed_tags":["cli-framework","interactive-shell","repl"],"use_cases":["Build system administration tools with discoverable commands and tab completion for file paths and options.","Create interactive debugging or diagnostic shells that support scripting and command history.","Develop workflow automation CLIs that transition smoothly from interactive exploration to batch scripting.","Implement interactive REPL-style applications for data analysis or configuration management.","Build security or penetration testing frameworks with command aliasing and macro support."],"what_it_does":"cmd2 extends Python's built-in cmd module to simplify building feature-rich interactive command-line applications. It provides automatic tab completion for commands, subcommands, file paths, and argparse-defined flags; rich help text generation; and scripting capabilities through text files and Python scripts. The framework is designed to bridge the gap between easy command discovery (via completion and help) and workflow automation (via aliases, macros, and scripting), making it suitable for both exploratory CLI tools and production automation systems.\n\nThe package depends on prompt-toolkit for terminal interaction, rich for colored output and formatting, rich-argparse for integrated argument help, and pyperclip for clipboard support. It has been actively maintained since 2008 and currently targets Python 3.11 and later, including free-threaded Python variants. With no known security vulnerabilities and a permissive MIT license, it is production-ready for developers building admin tools, interactive shells, or complex CLI workflows.","worth_installing":"Yes. cmd2 is actively maintained, has low install friction, carries no security vulnerabilities, and uses a permissive MIT license. It is well-suited for any Python developer building interactive CLI applications that need tab completion, help generation, and scripting support. The framework is production-stable (Development Status 5) and supports current Python versions."},"id":"cmd2","links":{"html":"https://skillfed.io/packages/cmd2","md":"https://skillfed.io/packages/cmd2.md","pypi":"https://pypi.org/project/cmd2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-06","license_spdx":"MIT","license_treatment":"permissive","name":"cmd2","python_support":"supports_current","summary":"cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python"},"popularity":{"monthly_downloads":2372794,"position":3099,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.2.0"}
