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.

Note

Starting with Contrast 3.9.10, the installer doesn't include the library and CVE data. For an air-gapped installation, you need to download this data manually. If you have internet access, you can configure your system to upgrade this data automatically.

Steps for downloading installation files

  1. To download the latest version of the Linux Contrast installer, 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 Windows Contrast installer, 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.

  3. Air-gapped installations: To download the library and CVE data, use this command:

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

    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 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.

  5. 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.

  6. 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