Other Installation Options
If you haven’t already, see the Shopware CLI overview for a quick start and the most common installation methods (Homebrew, APT, and Docker). This page covers additional or advanced options for other package managers, CI/CD environments, or building from source.
Package-manager installs
Shopware CLI is available through several community and distribution channels.
Fedora, CentOS, openSUSE, RHEL (YUM/DNF)
curl -1sLf \
'https://dl.cloudsmith.io/public/friendsofshopware/stable/setup.rpm.sh' \
| sudo -E bash
sudo dnf install shopware-cliArch Linux (AUR)
yay -S shopware-cli-binNix / NUR packages
nix profile install nixpkgs#shopware-cli
# or latest from FriendsOfShopware
nix profile install github:FriendsOfShopware/nur-packages#shopware-cliDevenv (Nix-based)
Update devenv.yaml with:
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
froshpkgs:
url: github:FriendsOfShopware/nur-packages
inputs:
nixpkgs:
follows: "nixpkgs"Then reference the input in devenv.nix:
{ pkgs, inputs, ... }: {
packages = [
inputs.froshpkgs.packages.${pkgs.system}.shopware-cli
];
}Manual installation from releases
Download the appropriate .deb, .rpm, or .apk file from the GitHub Releases page and install it manually:
sudo dpkg -i shopware-cli_<version>_linux_amd64.deb # Debian/Ubuntu
sudo rpm -i shopware-cli_<version>_linux_arm64.rpm # Fedora/RHEL
sudo apk add shopware-cli-<version>.apk # AlpineAlternatively, download the binary and move it into your $PATH:
curl -L -o shopware-cli https://github.com/shopware/shopware-cli/releases/latest/download/shopware-cli-linux-amd64
chmod +x shopware-cli
sudo mv shopware-cli /usr/local/bin/CI/CD and development environments
These options let you use the CLI automatically in hosted environments. The main page lists Docker and GitHub Actions, which are popular.
GitHub Codespaces
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/shyim/devcontainers-features/shopware-cli:latest": {}
}
}GitLab CI
build:
stage: build
image:
name: ghcr.io/shopware/shopware-cli:latest
entrypoint: [ "/bin/sh", "-c" ]
script:
- shopware-cli --versionddev integration
Add a file .ddev/web-build/Dockerfile.shopware-cli
# .ddev/web-build/Dockerfile.shopware-cli
COPY --from=ghcr.io/shopware/shopware-cli:bin /shopware-cli /usr/local/bin/shopware-cliDocker image
To copy the binary in your Docker image, add the following line:
# Dockerfile
COPY --from=ghcr.io/shopware/shopware-cli:bin /shopware-cli /usr/local/bin/shopware-cliAdd binary manually
Download the pre-compiled binaries from the releases page and copy them to the desired location.
Running with Docker
You can also use it within a Docker container. To do that, you will need to execute something more or less like the examples below.
Registries:
Example usage: Build assets of an extension
docker run \
--rm \
-v $(pwd):$(pwd) \
-w $(pwd) \
-u $(id -u) \
ghcr.io/shopware/shopware-cli \
extension build FroshPlatformAdminerBuilding from source
If you prefer to compile the CLI yourself (requires Go 1.20+ and Git):
git clone https://github.com/shopware/shopware-cli
cd shopware-cli
go mod tidy
go build -o shopware-cli .
./shopware-cli --version