A command-line interface (CLI) lets you operate software by typing commands and arguments into a terminal. Output returns as text, which makes commands easy to chain, script, and run over a remote connection.
Why it matters
The command line is the standard way to manage servers, run build tools, and call APIs. It is faster to repeat and easier to document than a series of clicks, and it works over SSH when no graphical desktop exists.
Most tools follow a pattern: a command, optional flags, then arguments.
Example
$ curl -I https://example.com
HTTP/2 200
Here curl is the command, -I is a flag asking for headers only, and the URL is the argument. The reply shows the status line.
Common mistakes
- Pasting commands from the web without reading them, especially ones using sudo or rm.
- Running destructive commands in the wrong directory; check with pwd first.
- Not using the built-in help, such as
--helporman.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.