Skip to main content

Download Contrast software with curl commands

When your license is provisioned, a good way to download the Contrast installer and licenses is to use curl commands. If you're unsure about who holds access for your company, contact Support.

You can also download other software files using curl commands.

Alternatively, you can download installers and license files from the Contrast Hub.

Before you begin

  • If you are installing with internet connectivity, download the installer that does not contain Contrast library and CVE data.

    This installer requires internet connectivity to download the latest library data.

    Once you install Contrast, enable Hub connectivity in system settings so you continue to get the latest library data.

  • If you are installing without internet connectivity (airgap), download the installer that contains Contrast library and CVE data. Otherwise, download the installer without this data. This installer requires internet connectivity to download the latest library and CVE data.

Steps for downloading installation files

  1. To download the latest version of the Linux Contrast installer without Contrast library and CVE data, use this command:

    curl -L https://hub.contrastsecurity.com/h/api/artifacts/installer/sh/nocache -u <ContrastHubUsername> -o "contrast-latest-nocache.sh"

    Replace <ContrastHubUsername> with the username for your Contrast Hub account. After you enter the command, you are prompted to enter the password.

  2. To download the latest version of the Linux Contrast installer with Contrast library and CVE data, use this command:

    curl -L https://hub.contrastsecurity.com/h/api/artifacts/installer/sh/libcache -u <ContrastHubUsername> -o "contrast-latest-cache.sh"

    Replace <ContrastHubUsername with the username for your Contrast Hub account. After you enter the command, you are prompted to enter the password.

  3. To download the latest version of the Windows Contrast installer without Contrast library and CVE data, use this command:

    curl -L https://hub.contrastsecurity.com/h/api/artifacts/installer/exe/nocache -u <ContrastHubUsername> -o "contrast-latest-nocache.exe"

    Replace <ContrastHubUsername> with the username for your Contrast Hub account. After you enter the command, you are prompted to enter the password.

  4. To download the latest version of the Windows Contrast install with Contrast library and CVE data, use this command:

    curl -L https://hub.contrastsecurity.com/h/api/artifacts/installer/exe/libcache -u  <ContrastHubUsername> -o "contrast-latest-cache.exe"

    Replace <ContrastHubUsername> with the username for your Contrast Hub account. After you enter the command, you are prompted to enter the password.

  5. To download the latest Contrast WAR file, use this command:

    curl -JLO https://hub.contrastsecurity.com/h/api/artifacts/war -u <ContrastHubUsername>

    Replace <ContrastHubUsername> with the username for your Contrast Hub account.

    The WAR file is useful if you have an existing Tomcat server and you want to install Contrast on that server.

  6. To download the license file, use this command:

    curl --request GET --url https://hub.contrastsecurity.com/h/rest/customer/license/text -u <ContrastHubUsername> > license.lic

    Replace <ContrastHubUsername> with the username for your Contrast Hub account. After you enter the command, you are prompted to enter the password.

  7. After you download the files, install Contrast.

Additional software downloads

You can use this curl command to download additional Contrast software:

curl -JLO https://hub.contrastsecurity.com/h/api/artifacts/<OtherSoftware> -u <ContrastHubUsername>

Replace <Other Software> with any of the these values:

  • For the .NET Framework agent, use dotnet

  • For the .NET Core agent, use dotnet_core

  • For the .NET Core installer for IIS, use dotnetcore_installer_for_iis

  • For the Library data export file, use ardy_export