# Deploy Ringleader with a device management tool

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).


> Install and update Ringleader on many Macs or Windows PCs at once, from a device management tool such as Jamf or Intune.


Install and update Ringleader on many Macs or Windows PCs at once, from a device management
tool such as Jamf or Intune, instead of asking each person to run the installer. Both
installers install with no window and no questions, from a command the tool runs as an
administrator.

For most fleets the whole job is three steps:

1. Download the installer for each platform from the **Downloads** page.
2. Add it to your device management tool, with the command below for its platform.
3. Ask each person to open Ringleader and go through its first-run setup.

If that is all you need, you are done. The sections below say where to get the installers,
what each command starts, how to update, and what you cannot set up for people yet.

## Prerequisites

- A Mac or Windows PC managed by a tool such as Jamf or Intune. The tool runs the install
  command as root on a Mac, or as SYSTEM or an administrator on Windows.
- An account that can sign in to the Ringleader console, such as
  [app.ringleader.dev](https://app.ringleader.dev), to download the installers.
- [Install Ringleader](https://docs.ringleader.dev/install/) describes what each installer puts on a computer.

## Get the installers

1. Sign in to the Ringleader console, such as [app.ringleader.dev](https://app.ringleader.dev),
   and open **Downloads** in the top menu.
2. On the **Clients** tab, download the current release's installers:
   - `Ringleader-<version>.pkg` for macOS.
   - `Ringleader-<version>-amd64.msi` for Windows.

## Check an installer

Each row's **SHA-256** column shows the start and end of the file's SHA-256, and holding the
pointer over it shows the whole value. To check that you have the published build, compute the
SHA-256 of the file you upload to your device management tool and compare the two. On a Mac,
run `shasum -a 256 <file>`. On Windows, run `Get-FileHash <file>` in PowerShell, which computes
SHA-256 by default.

## Get the installers from another computer

To get the installers from another computer, such as a build server that packages software for
your tool, make a personal link on the **Personal links** tab. A personal link always serves
the current release, and the computer that uses it needs no sign-in. It lasts 7, 30 or 90 days,
as you choose, and you can revoke it from the same tab at any time. Each person can hold 5
links at once.

<div class="callout callout-warning">
  <p class="callout-title">A personal link works like a password</p>
  <div class="callout-body">
    Anyone who has a personal link can download with it. It belongs to the person who made it, and
it keeps working until it expires or is revoked, even after that person leaves your
organization.
  </div>
</div>


## Install on each computer

Add the installer to your device management tool, with the command for its platform.


### macOS


Run this command as root. A device management tool runs its scripts as root already, so
leave out `sudo` there.

```bash
sudo installer -pkg Ringleader-<version>.pkg -target /
```

It installs the Ringleader application and the `rl` command line, as
[Install Ringleader](https://docs.ringleader.dev/install/#review-what-gets-installed)
describes.

A first install from this command starts nothing. Each person opens **Ringleader** from
`/Applications` or Spotlight, and its window opens.

When the command upgrades a Mac where Ringleader was running for the person signed in at
its screen, the installer stops the application during the upgrade and starts it again in the
menu bar, with no window. On a Mac where nobody is signed in at the screen, or where
Ringleader was not running, it starts nothing. To open the window, the person opens
**Ringleader** from `/Applications` or Spotlight, or clicks the Ringleader mark in the
menu bar.

If your tool installs the package without running the `installer` command, the
Ringleader window may open for the person signed in at the screen.



### Windows


Run this command as an administrator. The installer installs for every account on the PC,
so it needs administrator rights, and a device management tool that runs as SYSTEM has
them.

```powershell
msiexec /i Ringleader-<version>-amd64.msi /qn /norestart
```

`/qn` installs with no window, and `/norestart` stops Windows from restarting the PC on
its own. The command installs the Ringleader application and the `rl` command line, as
[Install Ringleader](https://docs.ringleader.dev/install/#review-what-gets-installed)
describes.

When your tool runs the command as SYSTEM, a first install starts nothing. An upgrade or
a repair starts the application again, hidden in the system tray, for each person signed in to the
PC who has used Ringleader there. After an install or an upgrade, ask each person to open
**Ringleader** from the **Start menu**, and the Ringleader window opens.

When a person runs this command on their own PC, from a terminal opened as an
administrator, the installer then starts the application hidden in the system tray, on a first
install and on an upgrade. To open its window, they click the Ringleader icon in the tray
or open **Ringleader** from the **Start menu**.

To run local workstations, each PC also needs Hyper-V and Virtual Machine Platform turned
on. [Requirements](https://docs.ringleader.dev/install/#requirements)
lists what to enable.






## Ask each person to finish setup

Each person signs in to Ringleader with their own account, and you can't sign them in or
set up the application for them yet. After the install, each person opens the application
and goes through [Complete Ringleader setup](https://docs.ringleader.dev/guides/complete-ringleader-setup/), where they sign in and choose what the
application sets up on their computer.

## Update Ringleader on every computer

To update a fleet, run the same command with the newer installer. Get it the same way as
the first one: from the **Downloads** page, or from a personal link, which always serves
the current release.

A person can also update their own computer, in either of two ways:

- Click **Download and install** on the application's
  [About](https://docs.ringleader.dev/reference/desktop-application/#about) page, shown when a newer
  release is out.
- Run [`rl upgrade`](https://docs.ringleader.dev/reference/cli/#install-a-newer-version) in a terminal.

Both use the person's own sign-in and ask them for administrator permission, so they are
for a person at their own computer. A device management script runs as root on a Mac or
as SYSTEM on Windows, where nobody is signed in to the Ringleader console, so it cannot use
`rl upgrade`. Use the installer command above instead.

## Troubleshoot

A device management tool cannot do these three things yet, so each item says what to do instead.

- If you need to preset the Ringleader console address on its own, you can't yet. The
  application signs in to `https://app.ringleader.dev`, so a person on a different Ringleader
  console signs in with `rl auth login <its URL>`. To set the address,
  [require organization sign-in on managed computers](https://docs.ringleader.dev/guides/require-sign-in-managed-computers/),
  which also keeps Ringleader from running until someone signs in there.
- If you need people to get updates only through your device management tool, you can't yet
  turn off `rl upgrade` and the application's **Download and install** button.
- If you need an installer link that belongs to your organization rather than to one person,
  you can't yet get one. A personal link is always tied to the account of the person who made
  it.

## Next steps

- [Require organization sign-in on managed computers](https://docs.ringleader.dev/guides/require-sign-in-managed-computers/)
  sets the address people sign in to, and keeps Ringleader from running until someone signs in.
- [Complete Ringleader setup](https://docs.ringleader.dev/guides/complete-ringleader-setup/) is the
  welcome flow each person goes through.
- [Install Ringleader](https://docs.ringleader.dev/install/) describes what gets installed and the
  requirements for each platform.

