These details cover release verification, manual installation, version selection, completion, and removal. Start with Install and use the WSO2 CLI for the short walkthrough.
Supported platforms are Linux (amd64, arm64, arm, 386), macOS
(amd64, arm64), and Windows (amd64, arm64).
The archive and checksums.txt come from the same GitHub release. The
installer finds the checksum line whose file name matches the archive exactly,
computes SHA-256, and refuses to extract on a mismatch or a missing line, so a
failed check installs nothing.
A matching checksum confirms that the archive matches the listed digest. It does not establish:
- The checksum file. It is downloaded from the same release as the archive, so whoever can replace one can replace both. Authenticity rests on HTTPS and on control of this repository and its release workflow.
- The install script.
curl ... | bashruns the response from GitHub Pages without checking a digest or signature first. Readscripts/install.shhere, or install by hand, if that matters for your environment. - The binary. The release workflow attests published artifacts, but the installer does not verify those attestations. Releases are not signed or notarized and carry no SBOM. See release artifacts for manual verification.
-
On the releases page, download the archive for your platform and
checksums.txt. The file names are listed in release artifacts. -
Verify the archive:
sha256sum --check --ignore-missing checksums.txt # Linux shasum -a 256 --ignore-missing -c checksums.txt # macOS
On Windows, compare
Get-FileHash -Algorithm SHA256 <archive>with the line inchecksums.txt. -
Extract the archive and put the binary on your
PATH.
For publisher authentication before trusting the checksum file, follow the artifact attestation verification steps.
curl -fsSL https://wso2.github.io/wso2-cli/install.sh | bash -s v0.1.0&([scriptblock]::Create((iwr https://wso2.github.io/wso2-cli/install.ps1 -useb))) v0.1.0To install the newest prerelease, set WSO2_CLI_PRERELEASE=true on bash,
not on curl:
curl -fsSL https://wso2.github.io/wso2-cli/install.sh | WSO2_CLI_PRERELEASE=true bashTo upgrade, run the installer again.
| Variable | Effect |
|---|---|
WSO2_HOME |
State root. Default ~/.wso2. The binary goes in $WSO2_HOME/bin. |
WSO2_CLI_NO_PROFILE=1 |
Don't edit your shell profile (Unix) or user environment (Windows), and don't set up tab completion. The installer prints what to set. |
On Unix the installer adds this block to your shell profile, here for bash:
# >>> wso2 cli >>>
export WSO2_HOME="/home/you/.wso2"
export PATH="/home/you/.wso2/bin:$PATH"
[ -x '/home/you/.wso2/bin/ws' ] && eval "$('/home/you/.wso2/bin/ws' completion bash)"
# <<< wso2 cli <<<
The installers finish by running ws completion install, which sets up tab
completion for your shell. Run it yourself after installing some other way, or
for another shell:
ws completion install [bash|zsh|fish|powershell]It detects the shell from $SHELL (PowerShell on Windows) and changes nothing
when completion is already set up:
- zsh: adds
source <('<path>' completion zsh)to the block in~/.zshrc, after acompinitthat runs only when nothing else has run one. - bash: adds
eval "$('<path>' completion bash)"to the block in~/.bashrc(or~/.bash_profile). Completion needs thebash-completionpackage. - fish: writes
~/.config/fish/completions/ws.fish, which runs'<path>' completion fish | source. - PowerShell: adds
& '<path>' completion powershell | Out-String | Invoke-Expressionto the block in$PROFILE. An execution policy ofRestrictedorAllSignedwould stop the profile loading, so it is refused.
<path> is the full path of the binary that ran completion install, quoted
for the shell. The line evaluates what that command prints, so it never runs
the command by name, which would evaluate whatever same-named program comes
first on PATH. Each line runs only while the binary is at that path, so a
moved or removed binary leaves a line that does nothing; run
ws completion install again to point it at the new place.
--profile <file> edits another file. Every line loads the script when a
terminal opens, so it never goes stale, and a product you install completes at
once. ws completion <shell> prints the script itself when its output is piped;
typed at a terminal it says how to set completion up, and --print prints the
script anyway.
curl -fsSL https://wso2.github.io/wso2-cli/uninstall.sh | bashiwr https://wso2.github.io/wso2-cli/uninstall.ps1 -useb | iexThis removes the binary, the profile block with the tab completion line in it,
and the fish completion file, and leaves everything under
$WSO2_HOME (contexts, preferences, installed products) in place.
Log out before you remove anything, because your sessions live in the OS secure store and no uninstaller touches it:
ws logout
ws context delete <name>--purge then deletes $WSO2_HOME itself. It cannot be undone, and a session
left in the keychain survives it. It refuses, removing nothing, when
$WSO2_HOME resolves to a filesystem or drive root, your home directory, or a
directory above it:
curl -fsSL https://wso2.github.io/wso2-cli/uninstall.sh | bash -s -- --purge&([scriptblock]::Create((iwr https://wso2.github.io/wso2-cli/uninstall.ps1 -useb))) -Purge| Problem | Fix |
|---|---|
command not found right after install |
Open a new terminal, or run the source command the installer printed. |
| Checksum mismatch | Nothing was installed. Retry once. If it fails again, open an issue with the tag and platform. |
| Windows can't replace the binary | Close every running CLI process and run the installer again. |