Subcommand

Noun · Development

Definitions

  1. A secondary command that follows the main program name in a CLI invocation, selecting a specific operation. For example, in `git commit`, `commit` is a subcommand of `git`, each with its own set of flags and arguments.

    In plain English: A command within a command — the word after the program name that tells it which specific action to perform.

    Example: "Run `docker compose up` — 'compose' is a subcommand of docker and 'up' is a subcommand of compose."

Related Terms