Installs the tenki CLI on Linux and macOS runners.
Install the latest CLI:
name: Tenki CLI
on:
workflow_dispatch:
jobs:
tenki:
runs-on: ubuntu-latest
steps:
- uses: TenkiCloud/actions/setup-cli@v1
with:
version: latest
- run: tenki --versionPin an exact CLI release:
- uses: TenkiCloud/actions/setup-cli@v1
with:
version: vX.Y.ZUse the output in later steps:
- id: setup-tenki
uses: TenkiCloud/actions/setup-cli@v1
- run: echo "Installed ${{ steps.setup-tenki.outputs.tenki-version }}"| Input | Required | Default | Description |
|---|---|---|---|
version |
No | latest |
CLI version to install. Accepts latest, vX.Y.Z, or X.Y.Z. |
| Output | Description |
|---|---|
tenki-version |
Resolved CLI version, for example 0.7.0. Always without a leading v. |
The action supports the platforms currently published by the Tenki CLI production installer:
| Runner OS | Architectures |
|---|---|
| Linux | x64 |
| macOS | arm64 |
Windows, Linux arm64, and macOS x64 are not supported in v1.
The action shells out to the public installer:
curl -fsSL https://tenki.cloud/install.sh | bashFor pinned versions it passes --version X.Y.Z. The installer follows the tenki.cloud redirect to public GCS, downloads the raw binary, and writes it to $TENKI_INSTALL_DIR/tenki.
Pinned versions are cached through @actions/tool-cache. latest is not cached because it is a moving target. The action adds the install or cached directory to $PATH.
No Tenki secret or GitHub token is required to install the CLI. Integrity is HTTPS plus the public GCS bucket, matching the deployed tenki.cloud/install.sh behavior.