AI engineering glossary · Command line Git
What is command-line flag?
Command-line flag (also called Option, Switch): An option given to a command, starting with a dash (short form, -v) or two dashes (long form, --verbose), that changes how it behaves. Flags can be switches or take a value. Reading a tool's help output is the way to learn its flags.
Command-line flag: an example
ls -lh lists files in long format with human-readable sizes, and pip install --upgrade pandas forces an update.
Related terms
More Command line Git terms
- Command-line interface
- Commit
- Commit hash
- Continuous integration
- Conventional Commits
- cron
- curl
- Detached HEAD
Where you learn it
Command-line flag is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.