liveBook · Manning

Command-line interface

As explained in Platform Engineering on Kubernetes

A software interface operated through textual commands in an operating-system terminal.

A command-line interface (CLI) is a downloadable binary operated from an operating-system terminal. Cloud-provider CLIs call provider APIs without requiring an application built with an SDK, making them practical for operations, developer workflows, continuous integration, and automation. section 1.1.3

Use a CLI when a repeatable, scriptable path to cloud resources matters:

  • Create resources on demand for integration tests and continuous-integration pipelines. section 1.1.3
  • Translate dashboard configuration into an equivalent provider command, often with sensible defaults already applied. section 1.1.4
  • Choose between dashboards, CLIs, APIs, and SDKs while consuming the same provider APIs and expected resource behavior. section 1.1.3 section 1.1.4

Creating a Kubernetes cluster with gcloud

Configure a Google Kubernetes Engine cluster in the dashboard, then inspect the generated gcloud command. The command can contain many parameters, while the dashboard hides complexity through sensible defaults. The dashboard, REST request, and CLI command are alternative interfaces for the same provisioning behavior. section 1.1.4

Figure 1.8 Create via Kubernetes cluster using the gcloud CLI

Use the generated gcloud command as a concrete view of how dashboard fields become a command-line provisioning operation. section 1.1.4

How Platform Engineering on Kubernetes covers it

How deep it goes
Defines CLI binaries and API interaction, then demonstrates generated provisioning commands without detailing command syntax or implementation internals.
Examples
Uses Google Kubernetes Engine creation and the generated gcloud command as its concrete provisioning example.
What it assumes
Assumes an operating-system terminal, an installed CLI binary, and provider credentials for commands issued outside an authenticated dashboard session.
What you can do after
Operate/configure cloud resources through provider CLIs and automate on-demand provisioning for integration tests.
How it connects
Connects command-line interfaces with APIs, SDKs, dashboards, continuous integration, automation pipelines, and Kubernetes.

Also explained in

Compare how 9 books explain command-line interface →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Platform Engineering on Kubernetes. The section links point to the parts of the book it draws on.