# Subcommands: app add, app list

A tool that does several jobs gives each job a word of its own, a subcommand, as git and docker do: a case on the first argument picks the job, shift drops that word, and one function per subcommand does the work.

![Cheat sheet for the lesson Subcommands: app add, app list: A tool that does several jobs gives each job a word of its own, a subcommand, as git and docker do: a case on the first argument picks the job, shift drops that word, and one function per subcommand does the work.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/9df4a3178d4a42fab54d9f99f7d12d38.webp)

- Category: Bash
- Level: Freelancer
- Tags: case-statement, linux, shell-function, shift(), subcommand, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-subcommands-cheat-sheet
