Installing the CLI

The Jamf Pro Server Tools CLI is provided using the following methods:
  • Bundled with the Jamf Pro installers (Jamf Pro 10.7.0 or later)

  • Package managers (homebrew, apt, and yum)

  • Manual download:

    • Command line

    • Browser

    • Jamf Account

General Requirements

  • Jamf Pro 10.0.0 or later
  • A Linux or Windows computer

Jamf Pro Installers (Jamf Pro 10.7.0 or later)

You can find the CLI in the following "bin" directory of the Jamf Pro installation for your platform:

  • Linux: /usr/local/jss/bin/jamf-pro

  • Windows: C:\Program Files\JSS\bin\jamf-pro.exe

Note:

You can copy the jamf-pro binary to other servers in your environment if you want to use the CLI on a different server. The MySQL binaries must be installed on the same server as the CLI for the CLI to function.

Downloading the CLI Using a Package Manager

You can download and install the CLI by executing the following commands for your platform from a command prompt.

Initial Installation

Red Hat Enterprise Linux
rpm --import https://archive.services.jamfcloud.com/gpg-public-key.asc
yum-config-manager --add-repo=https://archive.services.jamfcloud.com/rpm/
yum install jamf-pro-server-tools
Ubuntu
wget -qO - https://archive.services.jamfcloud.com/gpg-public-key.asc | sudo apt-key add -
add-apt-repository 'deb https://archive.services.jamfcloud.com/deb stable main'
apt update
apt install jamf-pro-server-tools

Upgrading from CLI 2.2.6 or Earlier on Linux

Starting with CLI 2.2.7, the location of the repositories was changed for Linux. If you are upgrading from CLI 2.2.6 or earlier on Linux, you must run the following commands instead of the commands listed above to move the repositories to the new location.

Red Hat Enterprise Linux
Execute the following command to move the repositories to the new location:
rm /etc/yum.repos.d/archive.servers.jamfcloud*.repo
yum-config-manager --add-repo=https://archive.services.jamfcloud.com/rpm/
yum update
Ubuntu
Execute the following command to move the repositories to the new location:
add-apt-repository --remove 'deb https://archive.services.jamfcloud.com/jamf-pro-server-tools/release/deb stable main'
add-apt-repository 'deb https://archive.services.jamfcloud.com/deb stable main'
apt update

Downloading the CLI Using a Command Line

To download the CLI manually, execute one of the following commands for your platform from a command prompt.

Note:
  • The CLI binary file will download to the current directory. Before downloading the CLI, navigate to the directory where you want to download it. Otherwise, you will need to manually move the CLI after download.

  • On Linux platforms, it is recommended to place the CLI binary in a directory on the system path, such as /usr/local/bin, to avoid needing to specify the full path when using the CLI.

Linux 64-bit versions
wget https://archive.services.jamfcloud.com/jamf-pro-server-tools/release/latest/linux/x64/jamf-pro
Linux 32-bit versions
wget https://archive.services.jamfcloud.com/jamf-pro-server-tools/release/latest/linux/x86/jamf-pro
Windows PowerShell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://archive.services.jamfcloud.com/jamf-pro-server-tools/release/latest/windows/x64/jamf-pro.exe -OutFile jamf-pro.exe
Note:

You can replace "latest" in the above URLs with a specific version. To browse available files and versions, see the following webpage: 
https://archive.services.jamfcloud.com

Downloading the CLI from Jamf Account

  1. Go to Jamf Account and navigate to Products > Other Products > Jamf Pro Server Tools, click the download arrow, and then choose your OS. Here is a link to that location: https://account.jamf.com/products/other/jamf-pro-server-tools
  2. Download the Jamf Pro Server Tools CLI and place it on the server on which you plan to install it.