Package managers
macOS
The STACKIT CLI can be installed through the Homebrew package manager.
- First, you need to register the STACKIT tap via:
brew tap stackitcloud/tap
- You can then install the CLI via:
brew install --cask stackit
Formula deprecated
The homebrew formula is deprecated, will no longer be updated and will be removed after 2026-01-22.
You need to install the STACKIT CLI as cask.
Therefor you need to uninstall the formula and reinstall it as cask.
Your profiles should normally remain. To ensure that nothing will be gone, you should backup them.
- Export your existing profiles. This will create a json file in your current directory.
stackit config profile export default- If you have multiple profiles, then execute the export command for each of them. You can find your profiles via:
stackit config profile list stackit config profile export <profile-name>
- Uninstall the formula.
- Install the STACKIT CLI as cask.
brew install --cask stackit
- Check if your configs are still stored.
stackit config profile list
- In case the profiles are gone, import your profiles via:
$ stackit config profile import -c @default.json --name myProfile
Linux
Snapcraft
The STACKIT CLI is available as a Snap, and can be installed via:
sudo snap install stackit --classic
or via the Snap Store for desktop.
Debian/Ubuntu (APT)
The STACKIT CLI can be installed through the APT package manager.
Before you begin
To install the STACKIT CLI package, you will need to have the curl and gnupg packages installed:
sudo apt-get update sudo apt-get install curl gnupg
Installing
- Import the STACKIT public key:
curl https://packages.stackit.cloud/keys/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/stackit.gpg- Add the STACKIT CLI package repository as a package source:
echo "deb [signed-by=/usr/share/keyrings/stackit.gpg] https://packages.stackit.cloud/apt/cli stackit main" | sudo tee -a /etc/apt/sources.list.d/stackit.list
- Update repository information and install the
stackitpackage:
sudo apt-get update sudo apt-get install stackit
If you can't install the
stackitpackage due to an expired key, please go back to step1to import the latest public key.
Nix / NixOS
The STACKIT CLI is available as a Nix package, and can be used via:
Eget
The STACKIT CLI binaries are available via our GitHub releases, you can install them from there using Eget.
# ~/.eget.toml ["stackitcloud/stackit-cli"] asset_filters=["stackit-cli_", "_linux_amd64.tar.gz"]
eget stackitcloud/stackit-cli
RHEL/Fedora/Rocky/Alma/openSUSE/... (DNF/YUM/Zypper)
The STACKIT CLI can be installed through the DNF/YUM / Zypper package managers.
Requires rpm version 4.15 or newer to support Ed25519 signatures.
$basearchis supported by modern distributions. On older systems that don't expand$basearch, replace it in thebaseurlwith your architecture explicitly (for example,.../rpm/cli/x86_64or.../rpm/cli/aarch64).
Installation via DNF/YUM
- Add the repository:
sudo tee /etc/yum.repos.d/stackit.repo > /dev/null << 'EOF' [stackit] name=STACKIT CLI baseurl=https://packages.stackit.cloud/rpm/cli/$basearch enabled=1 gpgcheck=1 gpgkey=https://packages.stackit.cloud/keys/key.gpg EOF
- Install the CLI:
Installation via Zypper
- Add the repository:
sudo tee /etc/zypp/repos.d/stackit.repo > /dev/null << 'EOF' [stackit] name=STACKIT CLI baseurl=https://packages.stackit.cloud/rpm/cli/$basearch enabled=1 gpgcheck=1 gpgkey=https://packages.stackit.cloud/keys/key.gpg EOF
- Install the CLI:
sudo zypper install stackit
Any distribution
Alternatively, you can install via Homebrew or refer to one of the installation methods below.
We are currently working on distributing the CLI on more package managers for Linux.
Windows
We are currently working on distributing the CLI on a package manager for Windows. For the moment, please refer to one of the installation methods below.
Manual installation
You can also get the STACKIT CLI by compiling it from source or downloading a pre-compiled binary.
Compile from source
-
Clone the repository
-
Build the application locally by running:
To use the application from the root of the repository, you can run:
./bin/stackit <GROUP> <SUB-GROUP> <COMMAND> <ARGUMENT> <FLAGS>
-
Skip building and run the Go application directly using:
go run . <GROUP> <SUB-GROUP> <COMMAND> <ARGUMENT> <FLAGS>
FreeBSD
The STACKIT CLI can be installed through the FreeBSD ports or packages.
To install the port:
cd /usr/ports/sysutils/stackit/ && make install clean
To add the package, run one of these commands:
pkg install sysutils/stackit
# OR
pkg install stackitPre-compiled binary
- Download the binary corresponding to your operating system and CPU architecture from our Releases page
- Extract the contents of the file to your file system and move it to your preferred location (make sure the directory is added to your
PATH)