Built-in CI Commands

cikit provides ready-to-use commands for common CI tasks. They are available through cikit <command> without creating a project-local ci_commands module. Commands use the shared cikit environment. When a command produces metrics or artifacts, they are associated with its logical run name.

This page documents the built-in command-line interface. For command registration, discovery, overrides, and the shared runner, see CI Commands. For direct use of the underlying Python macros, see Macros.

Command Overview

Command

Purpose

Macro

cbuild

Configure and build a CMake project; collect build metrics and artifacts.

cmake

ccoverage

Collect C/C++ coverage and generate reports and a badge.

coverage

clint

Analyze C/C++ sources with clang-tidy using a CMake compilation database.

cmake, clint

ctest

Configure, build, and execute CMake/CTest tests.

cmake, reports

doxygen

Generate Doxygen documentation and report warnings and generated outputs.

doxygen

init

Remove the public output directory and display the CI environment.

—

platformio

Build a PlatformIO project and collect compiler and build information.

platformio

platformio_lint

Analyze PlatformIO sources with clang-tidy.

platformio, clint

pybuild

Build and validate Python wheel and source distributions.

pybuild

pycoverage

Combine and report Python coverage results.

coverage

pylint

Run Pylint and create lint and TODO reports.

pylint

pypublish

Upload previously built Python distributions with Twine.

pybuild

pytest

Run a Python test directory and generate test reports.

pytest, reports

pytest_init

Remove intermediate Python coverage data before a test workflow.

coverage

repomix

Pack repository sources and report token and security statistics.

repomix

ruff

Run Ruff and generate lint reports.

ruff

sphinx

Prepare cikit artifacts and build Sphinx HTML documentation.

sphinx

tectonic

Compile a LaTeX source to PDF with Tectonic.

reports

Command Usage

Global options, including --verbose and --name RUN, must appear before the command name. Use cikit <command> --help to inspect its available arguments. External tools must be provided by the project or CI image; cikit does not install them automatically.

Logical Run Names

The default logical run name is specified on each command page. Use --name to override it. The run name and physical build-directory name are independent settings. For example:

cikit --name debug cbuild -b debug
cikit --name release cbuild -b release

Choose distinct artifact target names if outputs from different runs need to coexist in the shared public directory. See Artifacts for the artifact model and Cikit Data for run data.

Timeline Options

Commands supporting --timeline-limit N can query historical run data and generate timeline charts. If omitted, the cikit data default limit is used. A value of 0 disables timeline generation; a positive value limits the number of history entries requested.

Timeline generation is an optional CI section: recoverable errors in this section do not change the CI exit status. Other errors are not suppressed. See Timeline Charts for timeline configuration and usage.