The CLI is the practical entry point to KOSTRAL today: analyze Kubernetes manifests, run the optimization workflow, and experiment with local/remote engine composition.
Use koss --help and koss <command> --help for the exact interface in your installed version.
Follow the repository's current installation instructions.
git clone https://github.com/ClariOps/trl.git cd trl pip install -e . koss --help
| Command | Purpose | Example |
|---|---|---|
koss explain | Run analysis without invoking the Optimizer. | koss explain ./app.yaml |
koss optimize | Run the Optimizer, then validate and assess the resulting state. | koss optimize ./app.yaml --dry-run |
koss remote | Run a user-defined workflow that can invoke remote engines. Experimental. | koss remote ./app.yaml --exec ./workflow.py |
Use explain when you want Validator and Security findings without running the Optimizer.
koss explain ./examples/demo/bad.yaml # JSON for automation koss explain ./examples/demo/bad.yaml \ --output=json
Use optimize to run the Optimizer before the read-only checks. Use dry-run while reviewing the result.
koss optimize ./examples/demo/bad.yaml \ --dry-run # Machine-readable report koss optimize ./examples/demo/bad.yaml \ --dry-run --output=json
The example shows that a workflow can invoke separate HTTP engine processes while retaining the same engine responsibilities.
python examples/remote/optimizer_server.py python examples/remote/validator_server.py python examples/remote/security_server.py
koss remote ./examples/demo/bad.yaml \ --exec ./examples/remote/workflow.py
The current example uses a static examples/remote/registry.json. It does not provide automatic engine discovery, uploads, a hosted registry, or production isolation.
Choose output for the consumer of the workflow.
| Option | Use |
|---|---|
--output=json | Structured output for CI/CD and automation. |
--output=yaml | Manifest output representing the resulting Kubernetes configuration. |
--verbose | Additional diagnostics and execution details, where supported by the command. |
--dry-run | Review the result without invoking an execution target. |
koss --help because command availability and options may evolve.