kosli-dev/setup-cli-action GitHub Action (setup-kosli-cli) installs the Kosli CLI on GitHub Actions runners. After the action runs, every CLI command is available in later steps of the job.
The action runs on ubuntu-latest, windows-latest, and macos-latest runners.
This page documents the action itself. For a broader guide to using Kosli in GitHub Actions, including the command flags that are defaulted from GitHub CI variables, see CI/CD.
Usage
Install the latest release of the Kosli CLI:Inputs
Outputs
Reference the resolved version in later steps:
Version selection
Theversion input accepts:
- A full semver, e.g.
2.11.43— installed as-is. - A major pin, e.g.
"2"— resolves to the newest stable2.xrelease, and never3.0.0. - A major.minor pin, e.g.
"2.11"— resolves to the newest stable2.11.zpatch. latest— resolves to the newest stable release ofkosli-dev/cli. This is the default.
Example job
Secrets in GitHub Actions are not automatically exported as environment variables, so set the API token explicitly. All CLI flags can be set as environment variables by adding theKOSLI_ prefix and capitalizing them.
References
- Action source:
kosli-dev/setup-cli-action - Marketplace listing: setup-kosli-cli
- CI/CD integration guide
- Kosli CLI reference