Sonatype IQ CLI With Bundled JDK
Latest version: |
The parameters are the same as the Java CLI versions. |
Linux
Download the release that matches your system architecture and extract the contents of the tar archive to your preferred directory.
Download latest version for Linux:
The executable is located at bin/nexus-iq-cli
.
To run the CLI on Linux, use the following command:
./nexus-iq-cli [options]
Optionally, add the executable to your system’s PATH
for easier access.
Debian/Ubuntu
Download the public GPG signing key and add the key to your apt source keyring
wget -qO- https://repo.sonatype.com/repository/sonatype-hosted/pki/deb-gpg/GPG-KEY-sonatype-apt-hosted.asc | \ gpg --dearmor | \ sudo tee /usr/share/keyrings/sonatype-apt-hosted.gpg >/dev/null
Add the repository to your sources. They may be added manually or automatically.
Manually create file:
/etc/apt/sources.list.d/sonatype-hosted.list
deb [signed-by=/usr/share/keyrings/sonatype-apt-hosted.gpg arch=amd64] https://repo.sonatype.com/repository/sonatype-apt-hosted/ stable main
Automatic call to add sources.
sudo wget -P /etc/apt/sources.list.d/ https://repo.sonatype.com/repository/sonatype-hosted/deb/sonatype-hosted.list
Install the application via apt-get.
sudo apt-get update && sudo apt-get install nexus-iq-cli
Red Hat/CentOS
Add the repository to your sources.
Manually create /etc/yum.repos.d/sonatype-hosted.repo
[sonatype-hosted] name=Sonatype Hosted baseurl=https://repo.sonatype.com/repository/sonatype-yum-hosted/ enabled=1 gpgcheck=1 gpgkey=https://repo.sonatype.com/repository/sonatype-hosted/pki/rpm-gpg/RPM-GPG-KEY-Sonatype-yum.asc priority=1
Or automatically:
sudo wget -P /etc/yum.repos.d/ https://repo.sonatype.com/repository/sonatype-hosted/rpm/sonatype-hosted.repo
Install the application via yum (or dnf). The first time you install the package you will be prompted to install the GPG signing key.
sudo yum install nexus-iq-cli
macOS
Download the release that matches your system architecture and install it using the macOS package installer.
Download latest version for Mac:
The macOS Package Installer places files in the directory /usr/local/iq-cli
.
Homebrew
To install the latest version of IQ CLI using Homebrew, begin by running the one-time command:
brew tap sonatype/nexus-iq-cli
Once completed, proceed with:
brew install --cask nexus-iq-cli
If you previously installed the native binary (which is now being sunset) via Homebrew, you can install the JDK-bundled version by running:
brew upgrade nexus-iq-cli
macOS Usage
To run the CLI on macOS, use the following command:
nexus-iq-cli [options]
Windows
Download the ZIP archive and extract its contents to a local directory.
Download latest version for Windows:
The executable is located at: bin/nexus-iq-cli.bat
To run the CLI on Windows, use the following command:
./nexus-iq-cli.bat [options]