Local Pipeline
Local Execution
Outside GitLab CI and Azure DevOps, cikit selects LocalGitProvider.
Repository metadata is obtained from the local Git checkout. No external CI
system is required. See Providers for the detection
rules and metadata mappings.
Commands can be executed individually or combined into a project-specific
orchestration command. For example, the cikit project provides an all
command in its local ci_commands package:
uv run cikit all
all is project-specific, not a built-in cikit command. Projects can use
cikit.ci.run_step() to execute their own sequence of commands in one
process. For command registration and orchestration, see CI Commands.
Pipeline Identity
Unlike hosted CI providers, local execution has no externally assigned
pipeline identifier. LocalGitProvider generates one on first access and
stores it in the process environment as CIKIT_PIPELINE_ID. Subsequent
commands invoked within that process reuse the identifier.
Separate CLI processes do not automatically share this generated value. To associate separate invocations with one remote pipeline entry, explicitly set a common identifier in their parent environment. For example, in a POSIX shell:
export CIKIT_PIPELINE_ID="local-$(python -c 'import uuid; print(uuid.uuid4().hex)')"
uv run cikit init
uv run cikit ruff src tests
uv run cikit pytest tests/unittests
unset CIKIT_PIPELINE_ID
Use a new identifier for each new workflow. The identifier associates remote run data with a pipeline; it does not determine the local artifact directory. See Cikit Data for the data model.
Workspace and Artifacts
Local commands normally share the same checkout and filesystem. When they use
the same PUBLIC_DIR, they can access the run data and registered artifacts
produced by earlier commands without transferring CI job artifacts.
A complete local workflow starts with init. Subsequent commands reuse the generated output until the next workflow. Individual commands can also be executed during development without running a complete pipeline.
Unlike hosted CI jobs, local execution does not provide isolated workspaces, artifact publication or deployment automatically. Projects arrange these operations themselves when needed. The common workspace and artifact model is described in Environment and Artifacts.