Absolutely; as an example, last agency I worked for offered both directly integrated and headless Shopify builds. Headless costs a bit more, but came with a translation layer that also integrated with Magento's API in the event the client ever wanted to move away from Shopify.
It is less usual for CMS systems to have CLIs; they're usually web-based. In this context, it still very much is, yeah.