CLI Reference
Complete Kosli CLI command reference with examples for DevOps change tracking
Installation
# macOS/Linux
curl -sSL https://cli.kosli.com/install.sh | sh
# Windows
irm https://cli.kosli.com/install.ps1 | iex
# Verify
kosli versionAuthentication
# Set environment variables
export KOSLI_API_TOKEN="your-token"
export KOSLI_ORG="your-org"
# Or pass as flags
kosli --api-token="token" --org="org" <command>Flow Commands
Create Flow
List Flows
Get Flow Details
Artifact Commands
Report Artifact
Get Artifact
Evidence Commands
Report Test Evidence
Report Generic Evidence
Deployment Commands
Report Deployment
Snapshot Commands
Snapshot Kubernetes
Snapshot Docker
Environment Commands
List Environments
Get Environment
Common Options
Global Flags
Common Patterns
Quick Reference
Task
Command
Create flow
kosli create flow <name>
Report Docker image
kosli report artifact <image> --artifact-type docker
Report test results
kosli report evidence test junit --results-file tests.xml
Report security scan
kosli report evidence generic --evidence-type security-scan
Report deployment
kosli report deployment <env> --name <artifact>
Snapshot K8s
kosli snapshot k8s <env> --namespace <ns>
List flows
kosli list flows
Get artifact details
kosli get artifact <name> --flow <flow>
Examples
Complete CI/CD Flow
Next Steps
Last updated