{"id":16567,"date":"2019-04-08T11:13:32","date_gmt":"2019-04-08T11:13:32","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=16567"},"modified":"2026-11-06T16:03:26","modified_gmt":"2026-11-06T16:03:26","slug":"what-is-cli","status":"publish","type":"post","link":"\/ng\/tutorials\/what-is-cli\/","title":{"rendered":"What is CLI?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A command line interface (CLI) is a text-based way to control a computer: you type a command, and the operating system carries it out or returns the result as text. Windows, macOS, and Linux all include a CLI, and it is also the most common way to manage remote web servers.<\/p><p class=\"wp-block-paragraph\">The sections below explain how a CLI works, where it came from, and how the shell interprets your commands. They also show basic commands for the Windows Command Prompt and for Bash and zsh on Linux and macOS, then compare the CLI with a graphical user interface (GUI) so you know when each one is the better choice.<\/p><h2 id=\"h-what-is-a-cli-and-how-does-it-work\" class=\"wp-block-heading h-t-title-2\">What is a CLI and how does it work?<\/h2><p class=\"wp-block-paragraph\">A command line interface (CLI) is a program that lets you control a computer by typing text commands instead of clicking icons, buttons, and menus. You type a command at a prompt, press Enter, and the computer performs the task or prints the result as text.<\/p><p class=\"wp-block-paragraph\">Every major operating system includes a CLI. Windows offers Command Prompt and PowerShell, macOS has the Terminal app, and Linux distributions include a terminal app such as Terminal on GNOME or Konsole on KDE Plasma. Web servers are also commonly managed through a CLI over a secure remote connection.<\/p><p class=\"wp-block-paragraph\">Most commands have three parts:<\/p><ul class=\"wp-block-list\">\n<li><strong>Command:<\/strong> the instruction to perform, such as ls to list files.<\/li>\n\n\n\n<li><strong>Option:<\/strong> a flag that changes how the command behaves, such as -a to include hidden files.<\/li>\n\n\n\n<li><strong>Argument:<\/strong> the target the command acts on, such as a folder or file name.<\/li>\n<\/ul><p class=\"wp-block-paragraph\">For example, in ls -a ~\/Desktop, ls is the command, -a is the option, and ~\/Desktop is the argument. A program called the shell reads this text, interprets it, and asks the operating system to carry it out.<\/p><p class=\"wp-block-paragraph\">People use the CLI for tasks such as:<\/p><ul class=\"wp-block-list\">\n<li>Managing files and folders in bulk.<\/li>\n\n\n\n<li>Administering remote servers over SSH (Secure Shell).<\/li>\n\n\n\n<li>Automating repetitive work with scripts.<\/li>\n\n\n\n<li>Running developer tools such as Git, package managers, and WP-CLI for WordPress.<\/li>\n<\/ul><p class=\"wp-block-paragraph\">To practice, start with these <a data-click-id=\"hgr-post-content-link-essential-linux-commands\" href=\"\/ng\/tutorials\/linux-commands\/\">essential Linux commands<\/a>; many of the basics, such as ls, cd, and mv, work the same way in the macOS Terminal.<\/p><h2 id=\"h-the-roots-of-cli\" class=\"wp-block-heading h-t-title-2\">Where did the CLI come from?<\/h2><p class=\"wp-block-paragraph\">The CLI is the oldest way to interact with a computer through a screen. In the 1960s and 1970s, most users worked with a keyboard and a text-only display, and the CLI remained the standard interface into the 1980s on operating systems such as MS-DOS.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"432\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/windows-command-line-interface.png\/public\" alt=\"Windows Command Line Interface\" class=\"wp-image-16583\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/windows-command-line-interface.png\/w=975,fit=scale-down 975w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/windows-command-line-interface.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/windows-command-line-interface.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/windows-command-line-interface.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/figure><\/div><p class=\"wp-block-paragraph\">Users typed a command for every task, because there was no other way to communicate with the computer. The result was either text output or an action, such as copying a file. Typing the exact command mattered: a wrong command could delete the wrong files or close a program before the work was saved, and this is still the main drawback of the CLI.<\/p><p class=\"wp-block-paragraph\">After <a data-click-id=\"hgr-post-content-link-the-mouse-was-invented\" href=\"https:\/\/www.computinghistory.org.uk\/det\/613\/the-history-of-the-computer-mouse\/\" target=\"_blank\" rel=\"noopener\">the mouse was invented<\/a>, point-and-click interaction gave people a new way to use computers. Operating systems adopted the graphical user interface (GUI), which represents commands as icons, buttons, and menus. A GUI is easier for most people to learn, so everyday computing moved away from the CLI.<\/p><p class=\"wp-block-paragraph\">Today, the GUI is the standard way to use a computer, but Windows, macOS, and Linux still include a CLI alongside it. For example, Mac users can type cal in Terminal to print the current month&#8217;s calendar or open the Calendar app to view it.<\/p><h2 id=\"h-shell-the-foundation-behind-cli\" class=\"wp-block-heading h-t-title-2\"><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"549\" class=\"mac-screenshot aligncenter wp-image-16584 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/04\/displaying-calendar-in-terminal.png\" alt=\"Displaying Calendar in Terminal\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/displaying-calendar-in-terminal.png\/w=762,fit=scale-down 762w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/displaying-calendar-in-terminal.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/displaying-calendar-in-terminal.png\/w=300,fit=scale-down 300w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/h2><h2 id=\"h-what-is-a-shell-and-how-does-it-work-with-the-cli\" class=\"wp-block-heading h-t-title-2\">What is a shell and how does it work with the CLI?<\/h2><p class=\"wp-block-paragraph\">A shell is the program that interprets the commands you type in a CLI. It reads each command, works out what it asks for, and instructs the operating system to perform the task. The terminal app is the window you type in, while the shell is the program running inside it.<\/p><p class=\"wp-block-paragraph\">A shell can handle many types of tasks, such as:<\/p><ul class=\"wp-block-list\">\n<li>Working with files and directories<\/li>\n\n\n\n<li>Opening and closing programs<\/li>\n\n\n\n<li>Managing computer processes<\/li>\n\n\n\n<li>Running repetitive tasks as scripts<\/li>\n<\/ul><p class=\"wp-block-paragraph\">The most widely used shells are Command Prompt (cmd.exe) and PowerShell on Windows, Bash on most Linux distributions, and zsh, the default shell on macOS.<\/p><h3 class=\"wp-block-heading h-t-title-3\">Windows: Command Prompt and PowerShell<\/h3><p class=\"wp-block-paragraph\">Windows includes two shells: Command Prompt (cmd.exe), the successor to the MS-DOS command line, and PowerShell, a more advanced shell and scripting language. On Windows 11 version 22H2 and later, both open in the Windows Terminal app by default.<\/p><p class=\"wp-block-paragraph\">To open Command Prompt, press Windows+R, type cmd, and press Enter. You can also search for Command Prompt in the Start menu.<\/p><p class=\"wp-block-paragraph\">Depending on what you need, type in either a single command or a combination. You can also type commands that run within a sequence (one command is executed after another).<\/p><p class=\"wp-block-paragraph\">The Command Prompt is so robust that it can manage many things within the Windows operating system:<\/p><ul class=\"wp-block-list\">\n<li>Changing directories, listing directories, content, etc<\/li>\n\n\n\n<li>Handling networking like displaying IP networks settings<\/li>\n\n\n\n<li>Managing files like renaming, moving, etc<\/li>\n\n\n\n<li>Managing media like formatting and renaming volumes<\/li>\n<\/ul><p class=\"wp-block-paragraph\">The following examples use Command Prompt syntax:<\/p><ul class=\"wp-block-list\">\n<li><strong>Changing directory<\/strong><br>To navigate to a specific directory or folder in the command prompt, use <strong>CD<\/strong><strong>&nbsp;[path]<\/strong>. Make sure you add space before the intended path. For example:\n<p>&nbsp;<\/p>\n<pre>CD C:Program Files<\/pre>\n<\/li>\n\n\n\n<li><strong>Renaming a file<br><\/strong>To rename a file within a specific folder, use <strong>REN [drive:][path] [source] [target]<\/strong>.If you mention the location, that means the renamed file will be saved in the same folder. For example:\n<p>&nbsp;<\/p>\n<pre>REN d:untitled.txt untitled1.txt<\/pre>\n<\/li>\n\n\n\n<li><strong>Deleting a file<br><\/strong>To delete a file in the command prompt use <strong>DEL [filename]<\/strong>. If you want to add the options like <strong>force deletion<\/strong>, you can add it before the file name. For example:\n<p>&nbsp;<\/p>\n<pre>DEL \/F untitled.txt<\/pre>\n<\/li>\n\n\n\n<li><strong>Renaming a Volume Disk<br><\/strong>To edit the name of a specific volume disk, use <strong>LABEL [drive:][new volume name]<\/strong>. Keep in mind that you can use up to 32 characters on &nbsp;NTFS volume and 11 on FAT volume. For example: <p>&nbsp;<\/p> <pre>LABEL d:MyData<\/pre><\/li>\n<\/ul><h3 class=\"wp-block-heading h-t-title-3\">Linux and macOS: Bash and zsh<\/h3><p class=\"wp-block-paragraph\">Bash (Bourne Again SHell) is the GNU Project&#8217;s shell and the default shell on most Linux distributions. Other popular Unix shells include zsh, ksh (KornShell), and tcsh. Zsh is the default shell on current versions of macOS, but basic commands such as ls, cd, mv, and rm work the same way in Bash and zsh. On Windows, you can run Bash through the Windows Subsystem for Linux (WSL).<\/p><p class=\"wp-block-paragraph\">In most <a data-click-id=\"hgr-post-content-link-linux-distributions\" href=\"\/ng\/tutorials\/best-linux-distros\/\">Linux distributions<\/a>, you open the shell through a terminal app, usually called Terminal on GNOME desktops and Konsole on KDE Plasma. On macOS, go to Applications &gt; Utilities &gt; Terminal, or search for Terminal with Spotlight.<\/p><p class=\"wp-block-paragraph\">You can type commands one at a time, or save a sequence of commands in a file and run them together. A file like this is called a shell script.<\/p><p class=\"wp-block-paragraph\">The following examples work in the macOS Terminal and in most Linux terminals:<\/p><ul class=\"wp-block-list\">\n<li><strong>List all files in a folder<\/strong><br>To know what files under a specific folder, use <strong>ls<\/strong>.<br>The default command will exclude the hidden files. To show all files, you can add <strong>-a<\/strong>. For example:\n<p>&nbsp;<\/p>\n<pre>ls -a<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"mac-screenshot aligncenter wp-image-16588 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/04\/listing-all-files-in-a-folder-using-cli.png\" alt=\"Listing All Files in a Folder Using CLI\" width=\"682\" height=\"478\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/listing-all-files-in-a-folder-using-cli.png\/w=682,fit=scale-down 682w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/listing-all-files-in-a-folder-using-cli.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/listing-all-files-in-a-folder-using-cli.png\/w=300,fit=scale-down 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure><p><\/p>\n<\/li>\n\n\n\n<li><strong>Change directory<\/strong><br>To move to a specific directory, use <strong>cd destination<\/strong>. For example:\n<p>&nbsp;<\/p>\n<pre>cd ~\/Desktop<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"mac-screenshot aligncenter wp-image-16586 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/04\/change-directory-in-terminal.jpg\" alt=\"Change Directory Using MacOS Terminal\" width=\"682\" height=\"478\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/change-directory-in-terminal.jpg\/w=682,fit=scale-down 682w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/change-directory-in-terminal.jpg\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/change-directory-in-terminal.jpg\/w=300,fit=scale-down 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure><p><\/p>\n<\/li>\n<\/ul><ul class=\"wp-block-list\">\n<li><strong>Rename file<\/strong><br>To rename a file within a specific folder, use <strong>mv source destination<\/strong>. Keep in mind, that you need to make sure the name of the file and the extension. For example:\n<p>&nbsp;<\/p>\n<pre>mv ~\/Desktop\/untitled.rtf ~\/Desktop\/untitled1.rtf<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"mac-screenshot aligncenter wp-image-16589 size-full\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/04\/renaming-a-file-using-macos-terminal.png\" alt=\"Renaming a File Using MacOS Terminal\" width=\"682\" height=\"478\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/renaming-a-file-using-macos-terminal.png\/w=682,fit=scale-down 682w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/renaming-a-file-using-macos-terminal.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/renaming-a-file-using-macos-terminal.png\/w=300,fit=scale-down 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure><p><\/p>\n<\/li>\n\n\n\n<li><strong>Delete a file<\/strong><br>To delete a file in the specific folder use <strong>rm<\/strong> filename. To avoid deleting the wrong file, &nbsp;make sure you move to the right folder destination first. For example:<\/li>\n<\/ul><pre class=\"wp-block-preformatted\">    rm untitled.rtf<\/pre><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"478\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/deleting-a-file-in-macos-terminal.jpg\/public\" alt=\"Deleting a File Using MacOS Terminal\" class=\"wp-image-16587\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/deleting-a-file-in-macos-terminal.jpg\/w=682,fit=scale-down 682w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/deleting-a-file-in-macos-terminal.jpg\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/04\/deleting-a-file-in-macos-terminal.jpg\/w=300,fit=scale-down 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure><\/div><p class=\"wp-block-paragraph\">Type every command exactly, including spaces and letter case. Linux file systems are case-sensitive, so ls and LS are different commands, and Notes.txt and notes.txt are different files.<\/p><p class=\"wp-block-paragraph\">To stop a running command, press Control+C. The same shortcut works in the Windows Command Prompt.<\/p><h2 id=\"h-cli-vs-gui-which-one-should-you-use\" class=\"wp-block-heading h-t-title-2\">CLI vs GUI: which one should you use?<\/h2><p class=\"wp-block-paragraph\">A CLI is faster and more precise for repetitive, technical, and remote tasks, while a GUI is easier to learn and better for visual and occasional tasks. Most people use both: a GUI for everyday computing and a CLI when they need speed, automation, or access to a server.<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Attribute<\/th><th>CLI<\/th><th>GUI<\/th><\/tr><\/thead><tbody><tr><td>Input<\/td><td>Typed text commands<\/td><td>Mouse, touch, or keyboard on icons, buttons, and menus<\/td><\/tr><tr><td>Learning curve<\/td><td>Steeper: you need to know command names and syntax<\/td><td>Gentler: options are visible on screen<\/td><\/tr><tr><td>Repetitive tasks<\/td><td>Fast: one command or script can process hundreds of files<\/td><td>Slow: each action is usually repeated by hand<\/td><\/tr><tr><td>Automation<\/td><td>Commands can be saved and rerun as scripts<\/td><td>Limited and depends on the app<\/td><\/tr><tr><td>Precision<\/td><td>Targets exact files, paths, and settings<\/td><td>Limited to what the interface exposes<\/td><\/tr><tr><td>Error risk<\/td><td>A typo can run the wrong action, often without confirmation or undo<\/td><td>Confirmation dialogs and undo reduce mistakes<\/td><\/tr><tr><td>System resources<\/td><td>Light, because output is text only<\/td><td>Heavier, because graphics need more memory and processing power<\/td><\/tr><tr><td>Remote server access<\/td><td>Common over SSH, even on slow connections<\/td><td>Needs a remote desktop or a web-based control panel<\/td><\/tr><tr><td>Discoverability<\/td><td>Low: you rely on help pages such as man or help<\/td><td>High: features are visible in menus<\/td><\/tr><\/tbody><\/table><\/figure><p class=\"wp-block-paragraph\"><strong>Verdict:<\/strong> use a GUI for everyday, visual, or one-off tasks, especially while you are learning. Use the CLI to manage servers, automate repetitive work, or run developer tools, and test destructive commands such as rm or DEL on a copy of your files first.<\/p><p class=\"wp-block-paragraph\">The CLI doesn&#8217;t bypass operating system security. Administrative commands need elevated privileges, such as sudo on Linux and macOS or an administrator terminal on Windows, and protections such as macOS System Integrity Protection limit what even the root user can change.<\/p><p class=\"wp-block-paragraph\">The difference is easiest to see with bulk work. Moving a large amount of content from one WordPress site to another through the dashboard means exporting, importing, and checking items with plugins or by hand. With the <a data-click-id=\"hgr-post-content-link-wordpress-command-line-interface\" href=\"\/ng\/tutorials\/wp-cli\/\">WordPress Command Line Interface<\/a> (WP-CLI), developers can run the same operations as commands and repeat them across sites in a script.<\/p><p class=\"wp-block-paragraph\">WP-CLI runs on the server where WordPress is installed, so check that your <a data-click-id=\"hgr-post-content-link-web-hosting\" href=\"\/ng\/web-hosting\">web hosting<\/a> service includes SSH access before you plan a command-line workflow.<\/p><figure class=\"wp-block-image size-full\"><a data-click-id=\"hgr-post-content-link-ng-web-hosting\" class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/ng\/web-hosting\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<h2 id=\"h-conclusion\" class=\"wp-block-heading h-t-title-2\">How can you start using the CLI?<\/h2><p class=\"wp-block-paragraph\">The quickest way to learn the CLI is to use it for small, low-risk tasks on your own computer. Open Terminal on macOS or Linux, or Command Prompt or PowerShell on Windows, and practice listing, opening, and renaming files in a test folder before you run commands that delete or overwrite data.<\/p><p class=\"wp-block-paragraph\">Once the basics feel natural, use the CLI where it saves the most time: connecting to a web server, running WP-CLI, or scripting a task you repeat every week. Learning <a data-click-id=\"hgr-post-content-link-how-ssh-works\" href=\"\/ng\/tutorials\/what-is-ssh\/\">how SSH works<\/a> is a good next step, because SSH is how most people reach a remote server&#8217;s command line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A command line interface (CLI) is a text-based way to control a computer: you type a command, and the operating system carries it out or returns the result as text. Windows, macOS, and Linux all include a CLI, and it is also the most common way to manage remote web servers. The sections below explain [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/what-is-cli\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"What is CLI? How the command line works and CLI vs GUI","rank_math_description":"A command line interface (CLI) lets you control a computer with typed commands. Learn how it works, what a shell does, and when to use a CLI vs a GUI.","rank_math_focus_keyword":"what is cli","_content_updated_date":"2019-04-08","footnotes":""},"categories":[22715],"tags":[],"class_list":["post-16567","post","type-post","status-publish","format-standard","hentry","category-technical-aspects"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/what-is-cli","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/o-que-e-cli\/","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/que-es-cli\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/apa-itu-cli\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/what-is-cli","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/what-is-cli","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/what-is-cli","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/what-is-cli","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/what-is-cli","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/what-is-cli","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/what-is-cli","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/que-es-cli\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/que-es-cli\/","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/que-es-cli\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/o-que-e-cli\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/16567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=16567"}],"version-history":[{"count":28,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/16567\/revisions"}],"predecessor-version":[{"id":155141,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/16567\/revisions\/155141"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=16567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=16567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=16567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}