Pulse Beta

User guide

How-to guide

Install the CLI

Every way to install the CLI, the two names of its variables, when a new release reaches you, and how to upgrade and pin the CLI.

This page describes the newest release of the CLI. A part that needs a recent release names it, for example CLI 0.1.86 or later. tuxcarectl version prints the version that you have, and names a newer release when there is one (see Upgrade the CLI).

Install the CLI #

The CLI is one file. Select the method that fits your computer or your CI job:

Choose an installation method

For Linux and macOS. The script finds your operating system and processor, downloads the file, checks its checksum, and installs it. It does not need root access. Since CLI 0.1.99, it first checks the TuxCare signature of checksums.txt with the release key that it holds, through openssl; when openssl is absent or cannot read the key, it prints a warning and checks only the checksum and the version line of the binary. A private mirror must serve checksums.txt.sig beside checksums.txt.

curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh
  • The script installs to /usr/local/bin when it can write there, else to ~/.local/bin. Set TUXCARE_INSTALL_DIR to select another directory.
  • When the script prints NOTE: … is not in your PATH, the next line gives an export PATH=… command for the folder that the script installed to. Put that command in the start file of your shell, for example ~/.zshrc or ~/.bashrc, and open a new terminal.
  • PATH separates its folders with colons (:), so it cannot hold a folder whose name has a colon. When the install folder has a colon in its name, the line after the NOTE tells you to install again: set TUXCARE_INSTALL_DIR to a folder with no colon, and run the script again.
  • Set TUXCARE_VERSION, for example TUXCARE_VERSION=v0.1.100, to install one version. See Pin the CLI version.
  • On Windows, use npm, Python, or Manual download.

For macOS and Linux with Homebrew:

brew install tuxcare/tap/tuxcarectl

The package @tuxcare/tuxcarectl holds the file for your platform. It downloads nothing when you install it.

npm install --global @tuxcare/tuxcarectl

Or run it without an installation:

npx @tuxcare/tuxcarectl sca

The package tuxcarectl on PyPI holds the file for your platform. pipx and uv keep it out of the environment of your project:

pipx install tuxcarectl

Or run it without an installation:

uvx tuxcarectl sca

The image tuxcare/tuxcarectl is on Docker Hub. Mount your project and pass the token:

docker run --rm -v "$PWD":/work -w /work -e TUXCARE_PORTAL_TOKEN tuxcare/tuxcarectl:latest-toolchains sca
TagWhat it holds
tuxcare/tuxcarectl:latestThe CLI only. Use it as a base image, or where your image has the package manager.
tuxcare/tuxcarectl:latest-toolchainsThe CLI with npm, mvn, and pip, for a job that has no package manager of its own.

latest follows the promoted release (see When a new release reaches you). In CI, pin a version, for example tuxcare/tuxcarectl:0.1.100-toolchains.

For Debian and Ubuntu. The TuxCare SecureChain key signs the repository, and the CLI updates with the other packages of the system.

curl -fsSL https://securechain.tuxcare.com/apt/tuxcare-securechain.gpg | sudo tee /etc/apt/keyrings/tuxcare-securechain.gpg >/dev/null
curl -fsSL https://securechain.tuxcare.com/apt/securechain.sources | sudo tee /etc/apt/sources.list.d/securechain.sources >/dev/null
sudo apt-get update && sudo apt-get install -y tuxcarectl

For RHEL, AlmaLinux, Rocky Linux, and Fedora. The TuxCare SecureChain key signs the repository.

sudo curl -fsSL -o /etc/yum.repos.d/securechain.repo https://securechain.tuxcare.com/yum/securechain.repo
sudo dnf install -y tuxcarectl

On a system without dnf, use yum install -y tuxcarectl.

A Java build needs no installation: the plugin downloads the CLI for your platform, checks its checksum, keeps it in ~/.m2, and runs it. Add the TuxCare plugin repository to pom.xml:

<pluginRepositories>
  <pluginRepository>
    <id>tuxcare</id>
    <url>https://artifacts.tuxcare.com/repository/maven-plugin-securechain/</url>
    <releases><enabled>true</enabled></releases>
    <snapshots><enabled>false</enabled></snapshots>
  </pluginRepository>
</pluginRepositories>

Then add the plugin inside <build><plugins>:

<plugin>
  <groupId>com.tuxcare</groupId>
  <artifactId>tuxcarectl-maven-plugin</artifactId>
  <version>X.Y.Z</version>
  <executions>
    <execution><goals><goal>check</goal></goals><phase>verify</phase></execution>
  </executions>
</plugin>

Replace X.Y.Z with the version of the CLI you want the plugin to run: 0.1.94 or later for tuxcarectl-maven-plugin. Or run it one time, with no change to pom.xml:

mvn com.tuxcare:tuxcarectl-maven-plugin:check

The Gradle plugin works as the Maven plugin does: it downloads the CLI for your platform, checks its checksum, keeps it, and runs it. In settings.gradle.kts:

pluginManagement {
    repositories {
        maven { url = uri("https://artifacts.tuxcare.com/repository/maven-plugin-securechain/") }
        gradlePluginPortal()
    }
}

In build.gradle.kts:

plugins {
    id("com.tuxcare.tuxcarectl") version "X.Y.Z"
}

Replace X.Y.Z with the version of the CLI you want the plugin to run: 0.1.94 or later for com.tuxcare.tuxcarectl. Then run:

./gradlew tuxcarectlCheck

tuxcarectlCheck shows the CLI findings and fixes in Gradle's normal console output, including when the build uses a daemon (Gradle plugin 0.1.94 or later).

Each release is at https://securechain.tuxcare.com/get/<version>/, with checksums.txt, a signature for each file, and the public key securechain.pub. https://securechain.tuxcare.com/get/latest/ always has the files of the promoted release (see When a new release reaches you).

PlatformFile
Linux x86-64tuxcarectl-linux-amd64
Linux ARM64tuxcarectl-linux-arm64
macOS Inteltuxcarectl-darwin-amd64
macOS Apple silicontuxcarectl-darwin-arm64
Windows x86-64tuxcarectl-windows-amd64.exe
Windows ARM64tuxcarectl-windows-arm64.exe

For example, on Linux x86-64:

curl -fsSLO https://securechain.tuxcare.com/get/latest/tuxcarectl-linux-amd64
curl -fsSLO https://securechain.tuxcare.com/get/latest/checksums.txt
sha256sum --check --ignore-missing checksums.txt
install -m 0755 tuxcarectl-linux-amd64 /usr/local/bin/tuxcarectl

On Windows, download the .exe file, rename it to tuxcarectl.exe, and put it in a directory of your PATH.

macOS: download with curl

macOS quarantines a file that a web browser downloads, and blocks it at the first start. Download the file with curl, as above.

Each package gives both commands, tuxcarectl and securechain: the install script, a Linux package, and the Windows installer make securechain a hard link to tuxcarectl (a copy where the file system has no hard links), so a CI cache of bin/securechain alone works, and each npm package (@tuxcare/tuxcarectl, @tuxcare/securechain) and each PyPI project (tuxcarectl, securechain) gives both commands too. To move a global npm install, or a pip, pipx, or uv install, from securechain to tuxcarectl, remove the old package first (for example npm uninstall --global @tuxcare/securechain): the two give the same commands, and npm stops with EEXIST otherwise.

The two names of each variable #

Each variable of the CLI has a new name under TUXCARE_ and an old name under SECURECHAIN_ (TUXCARE_PORTAL_URL/SECURECHAIN_PORTAL_URL, TUXCARE_PORTAL_TOKEN/SECURECHAIN_PORTAL_TOKEN, TUXCARE_ID_TOKEN/SECURECHAIN_ID_TOKEN, TUXCARE_CI_SIGN_IN/SECURECHAIN_CI_SIGN_IN, TUXCARE_TENANT/SECURECHAIN_TENANT, TUXCARE_CONFIG/SECURECHAIN_CONFIG, TUXCARE_CACHE/SECURECHAIN_CACHE). The CLI reads the TUXCARE_ name first. When the two names hold different values, the CLI warns TUXCARE_X and SECURECHAIN_X hold different values. tuxcarectl reads TUXCARE_X and ignores SECURECHAIN_X. Remove one of the two, or give both the same value, naming no value.

The token and the portal URL of a run must come from one family of names: both TUXCARE_, both SECURECHAIN_, or a tie — the token holds the same value under the name of the URL's family, or a URL under the name of the token's family names the same origin. With no tie (for example SECURECHAIN_PORTAL_TOKEN of the job with a TUXCARE_PORTAL_URL that a CI group added for another host), the run stops with exit code 5 before it sends anything. The fix: set the URL under the name of the token's family as well, or move the token to the URL's family. A URL that no variable holds (the default portal, the portal of a stored login, or --portal-url alone) is no mix. With TUXCARE_CI_SIGN_IN=off, an OIDC token of the other family is no mix either: the CLI sends no OIDC token. version, help, and completion send nothing: they warn and do not stop.

Then check the installation:

tuxcarectl version

tuxcarectl --version prints the same line. A CLI of version 0.1.74 or earlier does not know the option, and exits with code 2.

After a command that connects to Pulse, a person at a terminal — not in CI — also gets a notice when the answer of the portal in that run names a newer promoted tuxcarectl release (a release in its soak gives none), below the 75-release warning. The notice names both versions and the upgrade command of your installation. For a channel with one command — the install script on Linux and macOS (tuxcarectl upgrade), brew, npm, pipx, and uv — the command stands alone on its own line; Docker, the system packages, Maven, Gradle, pip, and a script install on Windows get their step text at the end of the notice line. It comes at most once in 24 hours, on stderr only, and changes no exit code, no stdout, and no warning. TUXCARE_NO_UPDATE_NOTICE=1 turns it off. The rule of the warning at 75 releases does not change.

Since release 0.1.86, a new release of the CLI comes out in two steps. When TuxCare publishes the release, it is out under its version number. A tag alone does not publish a release: TuxCare can build and test a tag and not publish it, and only a published release is in the channels below. After a wait, TuxCare promotes the release, and the channels with no version move to it. The wait is 48 hours after the publish, or 18 hours while TuxCare uses the shorter wait of its release process. TuxCare can promote a release earlier, for example a security fix, or hold it longer. Each release has its own wait: an older release can be promoted while a newer one still waits.

Upgrade the CLI #

When the CLI is 75 or more releases behind the newest release, it prints a warning on each run that connects to your workspace. The warning does not change the exit code. tuxcarectl version names a newer release at any distance. When the CLI is older than the oldest version that the portal accepts, the CLI stops and tells you to upgrade. To upgrade, run:

tuxcarectl upgrade

With CLI 0.1.99 or later, where openssl can read the key, an upgrade of an install-script installation on Linux or macOS runs the install script only after it checks the TuxCare signature of checksums.txt of the release with the release key of the CLI and the sha256 of install.sh against that list. A missing or invalid signature, or a script whose sha256 the checksum list does not name, does not run, and the old CLI stays. When openssl is absent or cannot read the key, the upgrade prints a warning and the sum alone gates. A private mirror (TUXCARE_DOWNLOAD_BASE) must serve install.sh and checksums.txt.sig in each release folder. When the checksum list of the target release names no install.sh (a release before CLI 0.1.99), the upgrade downloads no script: it prints the manual step, exits with code 0, and the old CLI stays.

Installation methodUpgrade step
Install scriptRun the script again. If you set TUXCARE_VERSION, set the new version.
Homebrewbrew upgrade tuxcare/tap/tuxcarectl
npmnpm install --global @tuxcare/tuxcarectl. With npx, run npx @tuxcare/tuxcarectl@latest.
Pythonpipx upgrade tuxcarectl, or uv tool upgrade tuxcarectl. With uvx, run uvx tuxcarectl@latest.
DockerPull the image again, for example docker pull tuxcare/tuxcarectl:latest-toolchains. For a pinned tag, set a newer version in the CI job.
aptsudo apt-get update && sudo apt-get install --only-upgrade tuxcarectl
dnf / yumsudo dnf upgrade --refresh tuxcarectl, or sudo yum update tuxcarectl
Maven, GradleSet a newer version of the plugin in the build file. The plugin downloads the CLI of that version.
Manual downloadDownload the file again from https://securechain.tuxcare.com/get/latest/, check it against checksums.txt, and replace the old file.
GitHub Action, GitLab CI/CD componentThe major tag (@v0, @0) follows the promoted release (see When a new release reaches you). A pinned tag, or the input version, keeps one release: set a newer one.

Pin the CLI version #

The install script with no TUXCARE_VERSION installs the promoted release: a new release reaches it after the wait of the promotion, 48 hours after its publish or 18 hours with the shorter wait (since release 0.1.86; see When a new release reaches you). To run a new release at once, or the same release in each job, pin it:

Install methodHow to pin
Install scriptSet TUXCARE_VERSION=v0.1.100 before the script.
GitHub ActionPin the action tag, or set the input version.
GitLab CI/CD componentPin the component version, or set the input version.
DockerUse a version tag, for example tuxcare/tuxcarectl:0.1.100, not latest.

Pin a current release. An older release does not know each option of this guide: a part that needs a recent release names it. tuxcarectl version names a newer release when there is one.

When the CLI is 75 or more releases behind the newest release, it prints a warning. The warning does not change the exit code. A CI job that updates the CLI each month sees no warning. When it is older than the portal accepts, it stops and tells you to upgrade. See Upgrade the CLI.

Next: Invite your team