liveBook · Manning

Pipeline command

As explained in Effective Platform Engineering

A pipeline command is a named reusable sequence of pipeline steps that executes an automation operation.

A pipeline command is a named, reusable sequence of steps that performs an automation operation. In CircleCI, commands package steps for reuse, while jobs add an executor; GitHub Actions uses the related action abstraction. section 6.3.7

Use pipeline commands to keep repository-local pipelines simple and maintainable:

  • Keep local pipeline code focused on triggers and event ordering; place step implementation in shared, versioned pipeline or language libraries. section 6.3.7
  • Reuse commands inside jobs and compose jobs in workflows, using filters and dependencies to control when work runs and what runs first. section 6.3.7

Infrastructure planning command

A reusable command can check out code, configure remote Docker, run terraform init, generate a Terraform plan, convert it to JSON, and conditionally run a Checkov scan. Parameters select the working directory, variable file, output path, and scan options.

How Effective Platform Engineering covers it

How deep it goes
Defines commands as step sequences and demonstrates parameterized Terraform operations, but defers broader pipeline implementation details to shared libraries.
Examples
Uses Terraform initialization and planning, JSON plan output, Checkov scanning, optional extension steps, YAML anchors, and branch filters.
What it assumes
Assumes familiarity with software repositories and automation pipelines while defining triggers, steps, jobs, and executors.
What you can do after
Operate/configure reusable automation by composing parameterized steps into jobs and workflows.
How it connects
Connects commands with pipeline steps, jobs, executors, workflows, triggers, filters, dependencies, and shared libraries.

Related concepts

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