Skip to main content
This tutorial runs entirely on your local machine using Docker — no GitHub account or CI pipeline required. If you’d prefer a full hands-on introduction using a real CI/CD pipeline, see the Kosli Learning Labs instead.
In this tutorial, you’ll learn how Kosli allows you to track a source code change from runtime environments. You’ll set up a docker environment, use Kosli to record build and deployment events, and track what artifacts are running in your runtime environment.
As you go through the steps you can also check your progress in your browser. In the upper left corner, select the organization you want to view — your personal organization has the same name as your GitHub login.

Prerequisites

Steps

1

Set up

Set the KOSLI_ORG and KOSLI_API_TOKEN environment variables:
Check your Kosli setup:
This should return a list of flows or “No flows were found”.Clone the quickstart repository and export the current commit SHA:
2

Create a Kosli Flow

The repository includes a kosli.yml template file. Inspect it:
Create a Flow called quickstart-nginx using this template:
Confirm it was created:
In the web interface, select Flows in the left sidebar. You should see quickstart-nginx listed. No artifacts have been reported yet.
3

Create a Kosli Trail

Create a Trail in the quickstart-nginx Flow, named after the current git commit:
4

Attest an artifact

The repository’s docker-compose.yml uses a public nginx image as the artifact for this tutorial.Attest it to Kosli:
Verify the artifact was recorded:
5

Create a Kosli environment

Create an environment called quickstart of type docker:
Verify it was created:
In the web interface, select Environments. You should see quickstart listed with no snapshots yet.
6

Report what is running

Run the artifact:
Confirm the container is running:
Snapshot the environment to report all running containers to Kosli:
Confirm the snapshot was created:
Get a detailed view of the snapshot:
In the web interface, the Environments page will now show a timestamp in the Last Change At column. Select quickstart to see the full snapshot.
7

Search Kosli

Use kosli search to find everything Kosli knows about an artifact or git commit:
Visit the Kosli Querying guide to learn more about the search command.
Last modified on June 5, 2026