Install the CLI
The command-line tool secrets-tool is available for Windows, macOS 13 Ventura or later (Intel and Apple Silicon) and Linux (x64 and ARM64). The Download page detects your system and shows the matching command, the files and their checksums. You do not need an account for it.
Windows
In PowerShell, without administrator rights:
irm https://secret.sareba.com/install.ps1 | iex
The script puts secrets-tool.exe into %LOCALAPPDATA%\Programs\secrets-tool and adds the folder to your PATH. New terminals find the program directly.
macOS and Linux
curl -fsSL https://secret.sareba.com/install.sh | sh
If a secrets-tool is already installed, the one-liner replaces it in place (with sudo if needed) and removes further old copies on your PATH. Otherwise the target is /usr/local/bin if writable, otherwise ~/.local/bin. On a Mac no approval in the security settings is needed, because the program does not come through the browser.
Installers and packages
Prefer a double-click or your package manager? The Download page has for every version:
- Windows: a signed MSI installer. A double-click installs for your user without administrator rights to the same place as the script and adds the folder to your PATH; uninstall via Settings → Apps.
- Debian and Ubuntu: a
.debpackage – a double-click opens the software manager, orsudo apt install ./with the file name. - Fedora and RHEL: an
.rpmpackage –sudo dnf installwith the file's address. - Arch Linux: a
.pkg.tar.zstpackage –sudo pacman -Uwith the file's address.
The Linux packages are available for x64 and ARM64. Package sources for apt, dnf, pacman, Homebrew and pip are provided by updates.sareba.com, which also shows the commands to add them. If a package manager installed the program (apt, dnf, pacman, Homebrew or pip), it also updates it: secrets-tool update and the notices about new versions then name its command, for example sudo apt install --only-upgrade secrets-tool.
With the sareba Installer
The sareba Installer installs secrets-tool on Windows, macOS and Linux and keeps it up to date. It downloads the latest version from updates.sareba.com and checks signature and checksum first. On Windows it uses the MSI installer, on Linux the package source, on macOS Homebrew or the notarized program. On the secrets-tool page it is available under “With the sareba Installer”, with secrets-tool already selected when it starts. In scripts: sareba-installer installiere secrets-tool --still.
Updates and mandatory updates
secrets-tool update only accepts a list signed with sareba's release key and swaps the program in only if its signature checks out too: on Windows publisher sareba Computer & Software e.U., on macOS sareba's Developer ID. If a newer version exists, every command shows a hint on the error output (also for CI logs) and additionally in the console window when a script throws the error output away; the server is asked at most every 15 minutes. If a release fixes a security issue or a bug that keeps causing harm, it can become the minimum version. In addition, every version that is more than 10 releases behind and older than 30 days becomes mandatory to update. In both cases: older programs then ask “Update now?” in the console (versions before 0.9.1.20: “Jetzt aktualisieren?”) and continue with the command afterwards; in scripts they stop with a clear message. The most recent one was 0.9.1.43: older programs left the old token valid on every repeated remote login (fixed in 0.9.1.42). The last security update was 0.9.1.39 (see Security). update, version, status and help always work. If the server is unreachable, nothing is blocked. Emergency for scripts: SECRETS_TOOL_ALLOW_OUTDATED=1. What changed in which version is listed under Updates.
Checksum and security
Both scripts fetch manifest.json from this site and compare the program's SHA-256 checksum before installing anything; on Windows and macOS they also check that the program is signed by sareba. If anything does not match, the script stops. If you prefer to check yourself, download the file under Download and compare with Get-FileHash (Windows), shasum -a 256 (macOS) or sha256sum (Linux).
Install manually
Download the file under Download, put it into a folder on your PATH and on macOS and Linux make it executable with chmod +x. All programs for Windows and macOS are signed by sareba, the macOS ones additionally notarized by Apple; no further step is needed.
Check and get started
secrets-tool version secrets-tool remote login
Continue with Connect the CLI directly. Working without a server, get your identity.key under My access (see Working with the CLI).
Update and remove
secrets-tool update downloads new versions from updates.sareba.com, from version 0.9.1.3 on. Reinstall older versions with the one-liner; it replaces the existing program in place and removes further old copies. If secrets-tool version still shows the old version afterwards, a second copy sits earlier on your PATH: which -a secrets-tool (Windows: where.exe secrets-tool) lists all; delete the old one. To remove it, delete the file; on Windows also the PATH entry. Your identity.key is stored separately and stays.