APIs and CLIs are often discussed together, but one is an access point for retrieving data, while the other is a set of commands for issuing instructions.

▸ API (Application Programming Interface)
An “access point” for communication between two programs. When Program A lacks a certain capability—for example, retrieving information or asking a large language model to analyze something—it can use an API to get data or services from Program B.
When making a call, you often also need to bring a “key,” that is, an API