A command-line interface, or CLI, lets a user control software by typing text commands in a terminal instead of clicking through menus. CLIs are common in system administration, development, cloud management, and security tooling because they are fast, scriptable, and easy to chain together.
In cyber security, CLIs matter because they can reach powerful functions: reading files, changing settings, starting services, moving data, or calling cloud APIs. Attackers often use CLIs for rapid enumeration, privilege abuse, and automation after gaining access, while defenders use them for incident response, forensics, patching, and repeatable hardening tasks. Because commands can expose secrets or alter systems quickly, safe CLI use depends on strong access control, command logging, and careful handling of credentials. In modern AI workflows, a CLI may also become an execution surface where agents apply changes directly, making trust boundaries and review steps especially important.


