command-line interface
A program you control by typing commands as text in a terminal instead of clicking in a window.
In more detail
You type a command name, then options and arguments, and the program prints its result as text. Because commands are plain text, they can be saved in scripts, combined with pipes and repeated exactly.
Examples
In AWS: A program you control by typing commands as text in a terminal instead of clicking in a window.aws ec2 describe-instances --output tabledocker ps lists running containers from the command line.rpk and psql are the command-line tools used throughout the course.git and gh are command-line tools.sigma-cli is the command-line interface to pySigma.In Terraform: Terraform is a command-line tool: every action, from terraform init to terraform destroy, is a command with flags. Because commands are text, the same steps you type can be put into a pipeline unchanged.Related terms
- Docker CLI — The docker command you type into a terminal; it sends requests to the Docker daemon and prints the answers.
- shell — The program that reads the commands you type, runs them and shows the results; sh and bash are common ones.
- AWS CLI — Amazon's command-line tool for calling AWS services from a terminal or script.
- terminal — The text window where you type commands and read their output.
- command-line option — An argument starting with a dash, such as -r or --help, that changes how a command behaves rather than naming what it works on.
- Flux CLI — The flux command-line tool used to bootstrap Flux and to inspect the status and events of its objects.
- kubectl — The command-line tool for talking to a Kubernetes cluster's API server: creating, reading, changing and deleting objects.
- rpk — The command-line tool that ships with Redpanda for starting brokers and managing topics, consumer groups and schemas.
- psql — PostgreSQL's interactive command-line client for running SQL statements.
- subcommand — The word after a program's name that picks which of its operations to run, such as status in git status.
- Terraform — An infrastructure-as-code tool from HashiCorp that creates and changes cloud resources such as servers, networks and databases from configuration files.
Taught in
- The Test Server Nobody Could Rebuild — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Monday, Five Tickets — Microsoft Azure Administrator (AZ-104) Exam Prep
- A Role That Fits: Reading And Writing Role Definitions — Microsoft Azure Administrator (AZ-104) Exam Prep
- Would The X-Rays Survive? Redundancy, Encryption And Tools — Microsoft Azure Administrator (AZ-104) Exam Prep
- The Server Nobody Could Rebuild: ARM Templates And Bicep — Microsoft Azure Administrator (AZ-104) Exam Prep
- No Public Doors: Bastion, Service Endpoints And Private Endpoints — Microsoft Azure Administrator (AZ-104) Exam Prep
- Infrastructure As Code In The Pipeline — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- A Retailer Moves To Azure In A Weekend — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- The Benefits, In Microsoft's Words — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Regions, Zones And The Resource Hierarchy — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Compute — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Networking — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Moving Data In — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Governance: Policy, Locks And Purview — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Managing And Deploying Resources — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Look-Alike Services Sprint — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- What A Shell Is, And What Bash Is — Bash Scripting & Command Line Automation
- Which Shell Am I In, And Getting Bash Five — Bash Scripting & Command Line Automation
- Moving Around: pwd, ls, cd And Paths — Bash Scripting & Command Line Automation
- Making, Copying, Moving And Removing — Bash Scripting & Command Line Automation
- Help, History, Completion And Aliases — Bash Scripting & Command Line Automation
- Option Parsing With getopts — Bash Scripting & Command Line Automation
- POSIX sh Versus Bash — Bash Scripting & Command Line Automation
- eval, And What To Use Instead — Bash Scripting & Command Line Automation
- find And xargs — Bash Scripting & Command Line Automation
- What Argo Workflows Runs: Controller, Server And One Pod A Step — Certified Argo Project Associate (CAPA) Exam Prep
- Argo CD: Components, Applications And Projects — Certified Argo Project Associate (CAPA) Exam Prep
- A Bake-Off With One Rule: Argo CD And Flux — Certified GitOps Associate (CGOA) Exam Prep
- Tooling Sprint: The CTO's Shopping List — Certified GitOps Associate (CGOA) Exam Prep
- Argo CD Architecture and Applications — Continuous Integration & Continuous Delivery Pipelines
- Bootstrapping Flux on a Cluster — Continuous Integration & Continuous Delivery Pipelines
- Monitoring With The Built-in CLI — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- Route Tables and Internet Gateways — Cloud Infrastructure & Hyperscaler Architecture
- The Console versus the CLI — Cloud Infrastructure & Hyperscaler Architecture
- The Intern Who Could Delete Backups: Identity And Access — CompTIA Cloud+ (CV0-004) Exam Prep
- Replay Everything Since Eleven — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Build Context, Dockerignore And Your First Dockerfile — Docker Architecture & Production Containers
- CMD, ENTRYPOINT, USER And Process Signals — Docker Architecture & Production Containers
- Scan, Patch And Inspect The Software Supply Chain — Docker Architecture & Production Containers
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Two Hours, Sixty Questions — Google Cloud Associate Cloud Engineer Exam Prep
- Tooling: Infrastructure As Code And AI Assistants — Google Cloud Associate Cloud Engineer Exam Prep
- Running Cloud Run And AI Workloads — Google Cloud Associate Cloud Engineer Exam Prep
- The gcloud And Product-Name Sprint — Google Cloud Associate Cloud Engineer Exam Prep
- The Pull Request, And Branch Naming — Advanced Git Internals & Distributed Workflows
- Why It Ran, Why It Did Not: Reading Runs, Jobs And Checks — GitHub Actions (GH-200) Exam Prep
- Logs And Artifacts Without The Browser: REST And The gh CLI — GitHub Actions (GH-200) Exam Prep
- Starting A Broker And Reading Its Metadata — Apache Kafka & Event Streaming
- V8 Engine & JIT Pipeline: Bytecode & Turbofan — Node.js Internals & Backend Services
- Runtime Configuration: CLI Flags & Native --env-file — Node.js Internals & Backend Services
- Native Compression: node:zlib & Streaming Codecs — Node.js Internals & Backend Services
- Native Test Runner: node:test & node:assert/strict — Node.js Internals & Backend Services
- Detection as Code: Authoring & Testing Sigma Rules — Security Operations & Threat Hunting (SOC)
- Moving To A Secret Manager — Application Security & Threat Modeling for Engineers
- Dependency Risk And Typosquatting — Application Security & Threat Modeling for Engineers
- Installing Terraform And Meeting The CLI — Infrastructure as Code with Terraform
- The Licence, OpenTofu And IBM — Infrastructure as Code with Terraform
- What State Really Is And Why It Is Needed — Infrastructure as Code with Terraform
- Workspaces For Multiple Environments — Infrastructure as Code with Terraform
- Providers: How Terraform Reaches Every API — HashiCorp Terraform Associate (004) Exam Prep
- State: Terraform's Memory Of What It Built — HashiCorp Terraform Associate (004) Exam Prep
- Sensitive Data, Ephemeral Values And Secrets From Vault — HashiCorp Terraform Associate (004) Exam Prep
- The Local Backend, And Workspaces On One Machine — HashiCorp Terraform Associate (004) Exam Prep
- Importing What Terraform Did Not Build — HashiCorp Terraform Associate (004) Exam Prep
- Inspecting And Repairing State From The CLI — HashiCorp Terraform Associate (004) Exam Prep
- Runs In HCP Terraform: The cloud Block And Remote Execution — HashiCorp Terraform Associate (004) Exam Prep
- HCP Workspaces, Projects And Variable Sets: Which Value Wins? — HashiCorp Terraform Associate (004) Exam Prep
- From docker run To docker service: Replicas, Global Mode And Updates — Docker Certified Associate (DCA) Exam Prep
- One File, Five Services: Stacks From Compose Files — Docker Certified Associate (DCA) Exam Prep
- Where Do The Tasks Land? Labels, Constraints And Templates — Docker Certified Associate (DCA) Exam Prep
- Stuck In Pending: Troubleshooting Services And Reading docker inspect — Docker Certified Associate (DCA) Exam Prep
- Orchestration Sprint: Eight Calls In Eight Minutes — Docker Certified Associate (DCA) Exam Prep
- Twelve Lines, Ten Warnings: Dockerfile Instructions And hadolint — Docker Certified Associate (DCA) Exam Prep
- One Edited File, Six Rebuilt Steps: Layers, Cache And Flat Images — Docker Certified Associate (DCA) Exam Prep
- Three Names, One Image: Listing, Formatting, Tagging And Pruning — Docker Certified Associate (DCA) Exam Prep
References
- bash(1) manual page
- POSIX Utility Conventions
- GNU Bash manual: What is a shell?
- Flux CLI reference
- Pro Git: The Command Line
- NIST glossary: command line interface
- Terraform CLI overview
Certification courses
- AWS Cloud Practitioner course and practice exam: CLF-C02
- AZ-104 course and practice exam: Microsoft Azure Administrator
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- AZ-900 course and practice exam: Microsoft Azure Fundamentals
- CAPA course and practice exam: Certified Argo Project Associate
- CGOA course and practice exam: Certified GitOps Associate
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CompTIA Cloud+ course and practice exam: CV0-004
- CCDAK and CCAAK course and practice exams: Confluent Apache Kafka certifications
- Google Associate Cloud Engineer course and practice exam: Google Cloud certification
- GH-200 course and practice exam: GitHub Actions
- Terraform Associate course and practice exam: HashiCorp Terraform Associate (004)
- DCA course and practice exam: Docker Certified Associate