What is a CLI? - Command Line Interface Explained - AWS

You can use a command line interface (CLI) in many use cases due to its versatility. For example, if you’re a system administrator, software engineer, data scientist, or technical user who wants more control, you can benefit from using the CLI. We give some examples next.

System administration

System administrators use CLIs to fix system-related issues, check the operating system configurations, and change or update configurations on remote machines. They can run commands and control systems at scale.

Software development

Software developers regularly use CLI tools to save time and streamline their workflows. For instance, they frequently access third-party libraries while working. If they add references to these libraries using a CLI, they can do so with one inserted command instead of leaving instructions to search for the library using the GUI. This approach saves time for both the developer and future users that interact with the system.

Cloud computing

In cloud environments, a CLI is essential for managing virtual machines, containers, cloud services, and server configurations. Developers and administrators use CLIs to interact with cloud providers' APIs, automate resource provisioning, and deploy applications.

Network management

Network administrators use CLIs to configure routers, switches, firewalls, and other networking devices. CLI tools help when you want to monitor network traffic, troubleshoot connectivity issues, and implement security policies. Penetration testers also use command line tools for vulnerability scanning, network reconnaissance, and incident analysis.