Installation
You can install inventory by downloading a release from GitHub or by using our installer script.
Choose your adventure below.
Direct Download
You can download the binary from the inventory releases page on GitHub and add to your $PATH
.
The inventory_VERSION_checksums.txt file contains the SHA-256 checksum for each file.
Installer Script
We also have an install script which is very useful in scenarios like CI.
By default, it installs on the ./bin
directory relative to the working directory:
sh -c "$(curl --location https://bketelsen.github.io/inventory/install.sh)" -- -d
It is possible to override the installation directory with the -b parameter. On Linux, common choices are ~/.local/bin
and ~/bin
to install for the current user or /usr/local/bin
to install for all users:
sh -c "$(curl --location https://bketelsen.github.io/inventory/install.sh)" -- -d -b ~/.local/bin
Warning
On macOS and Windows, ~/.local/bin and ~/bin are not added to $PATH by default.
By default, it installs the latest version available. You can also specify a tag (available in releases) to install a specific version:
sh -c "$(curl --location https://bketelsen.github.io/inventory/install.sh)" -- -d v0.2.2