whatisgithub

What is cmd2?

teto/cmd2 — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2026-02-08

1PythonAudience · developerComplexity · 2/5MaintainedSetup · easy

In one sentence

A Python library for building interactive command-line tools with built-in tab-completion, help text, history, and scripting support.

Mindmap

mindmap
  root((cmd2))
    What it does
      Interactive CLI apps
      Tab completion
      Auto help text
    Tech stack
      Python
      Extends cmd module
    Use cases
      Shell like tools
      Security frameworks
      Automation scripts
    Audience
      Developers
      Sysadmins
      Security experts

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build an interactive shell-like tool with automatic tab-completion and help menus.

USE CASE 2

Add scripting, aliases, and macros so power users can automate repetitive command sequences.

USE CASE 3

Create a security testing or network management tool with a keyboard-driven interface.

USE CASE 4

Turn a small set of Python methods into a full interactive command-line application.

What is it built with?

Python

How does it compare?

teto/cmd2a-bissell/unleash-liteabhiinnovates/whatsapp-hr-assistant
Stars111
LanguagePythonPythonPython
Last pushed2026-02-08
MaintenanceMaintained
Setup difficultyeasyhardhard
Complexity2/54/53/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Copy-paste prompts

Prompt 1
Show me a minimal cmd2 'Hello World' app and explain what each part does.
Prompt 2
Help me convert my existing Python script into an interactive cmd2 command-line tool.
Prompt 3
How do I add custom tab-completion for one of my own cmd2 commands?
Prompt 4
Explain how cmd2 extends Python's built-in cmd module to add history, scripting, and aliases.

Frequently asked questions

What is cmd2?

A Python library for building interactive command-line tools with built-in tab-completion, help text, history, and scripting support.

What language is cmd2 written in?

Mainly Python. The stack also includes Python.

Is cmd2 actively maintained?

Maintained — commit in last 6 months (last push 2026-02-08).

How hard is cmd2 to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is cmd2 for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.