What is a CLI?
A CLI is a text-based interface to interact with your website, using text commands typed on your keyboard. In a CLI, you cannot use your mouse to perform any action, as it actually does not even have a graphical interface.
CLI applications have some advantages over regular web applications:
- They are more performant than web pages, as they do not have to show graphic elements, and as they are triggered through the server command line, they are great for creating automation. In fact, you cannot access a CLI application through your web browser.
- Using a CLI application, you can avoid some server limitations such as a maximum execution time limit. So, running time-consuming scripts from the server terminal will not result in a timeout error.
- CLI applications are more secure than Webhooks, as they can only be triggered through your server internals. This prevents attackers from trying to reach them to cause harm to your site.
To interact with a CLI...