Home Explore Blog CI



docker

content/reference/cli/docker/README.md
8b36ac713a03f5be5189a89d0a6d80f0cc4a14790bdba14c0000000300000631
---
_build:
  list: never
  publishResources: false
  render: never
---

# About these files

The files in this directory are stub files which include the file
`/_includes/cli.md`, which parses YAML files generated from the
[`docker/cli`](https://github.com/docker/cli) repository. The YAML files
are parsed into output files like
</reference/cli/docker/build/>.

## How the output is generated

The output files are composed from two sources:

- The **Description** and **Usage** sections comes directly from
  the CLI source code in that repository.

- The **Extended Description** and **Examples** sections are pulled into the
  YAML from the files in [https://github.com/docker/cli/tree/master/docs/reference/commandline](https://github.com/docker/cli/tree/master/docs/reference/commandline) for Docker CLI commands and [https://github.com/docker/compose/tree/v2/docs/reference](https://github.com/docker/compose/tree/v2/docs/reference) for Docker Compose commands.
  Specifically, the Markdown inside the `## Description` and `## Examples`
  headings are parsed. Submit corrections to the text in those repositories.

## Updating the YAML files

The process for generating the YAML files is still in flux. Check with
@thaJeztah. Be sure to generate the YAML files with the correct
release branch of `docker/cli`, for example, the `19.03` branch.

After generating the YAML files, replace the YAML files in
[https://github.com/docker/docs/tree/main/_data/engine-cli](https://github.com/docker/docs/tree/main/_data/engine-cli)
with the newly-generated files. Submit a pull request.

Chunks
63d97aa8 (1st chunk of `content/reference/cli/docker/README.md`)
Title: About CLI Documentation Generation
Summary
This document explains the process of generating CLI documentation files. The files in this directory are stub files that include `/_includes/cli.md`, which parses YAML files generated from the `docker/cli` repository. The output files are composed of data from the CLI source code and Markdown files in the `docker/cli` and `docker/compose` repositories. To update the YAML files, contact @thaJeztah and replace the YAML files in the specified directory.