# neodesk companion

Source: https://docs.neode.sk/command-line/reference/companion/
Last updated: 2026-12-03

> 13 commands. NeoDesk Companion: releases, templates, installer files and the silent install.

NeoDesk Companion: releases, templates, installer files and the silent install.

`neodesk companion --help` lists the same commands in the terminal. The flags every command takes are in the [command reference](https://docs.neode.sk/command-line/reference.md#flags-for-every-command).

## neodesk companion auto-import

Show whether new NeoDesk Companion releases are imported automatically, and which versions Companions run.

```text quoted
neodesk companion auto-import [flags]
```

Needs enrollment.manage; only reads. Calls `GET /api/companion-releases/auto-import`.

## neodesk companion auto-import-set

Pause or resume the automatic import of NeoDesk Companion releases.

Give the request body with -f key=value (text), -F key=json (numbers, true or false, lists) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing.

```text quoted
neodesk companion auto-import-set [flags]
```

Needs enrollment.manage; changes something: needs a token with read and write access. Calls `PUT /api/companion-releases/auto-import`.

## neodesk companion installers

List the NeoDesk Companion installer files this server serves.

```text quoted
neodesk companion installers [flags]
```

Needs a signed-in account; only reads. Calls `GET /api/portal/installers`.

## neodesk companion release-signing

Show whether NeoDesk Companion releases are signed and checked.

```text quoted
neodesk companion release-signing [flags]
```

Needs enrollment.manage; only reads. Calls `GET /api/companion-releases/signing-status`.

## neodesk companion releases

List the NeoDesk Companion releases this server keeps.

```text quoted
neodesk companion releases [flags]
```

Needs enrollment.manage; only reads. Calls `GET /api/companion-releases`.

## neodesk companion releases-sync

Fetch the newest NeoDesk Companion release from GitHub.

Give the request body with -f key=value (text), -F key=json (numbers, true or false, lists) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing.

```text quoted
neodesk companion releases-sync [flags]
```

Needs enrollment.manage; changes something: needs a token with read and write access. Calls `POST /api/companion-releases/sync`.

## neodesk companion rollout

Show Companion update groups, signed release pins, and device results.

```text quoted
neodesk companion rollout [flags]
```

Needs enrollment.manage; only reads. Calls `GET /api/companion-releases/rollout`.

## neodesk companion rollout-set

Assign a Companion, pin a signed release, promote Pilot, or authorize a rollback.

Requires an administrator. Supply the action and its parameters as a JSON body.

```text quoted
neodesk companion rollout-set [flags]
```

Needs enrollment.manage; changes something: needs a token with read and write access. Calls `PUT /api/companion-releases/rollout`.

## neodesk companion silent-installer

Download the NeoDesk Companion MSI with an install.cmd for this server as a zip (use --output).

```text quoted
neodesk companion silent-installer (--enrollment-token-stdin | --enrollment-token ENROLLMENT_TOKEN) [flags]
```

| Flag | What it is |
|---|---|
| `--enrollment-token-stdin` | read the enrollment token from standard input (its first line), so it stays out of the command line |
| `--enrollment-token ENROLLMENT_TOKEN` | the enrollment token the computer joins with (this or --enrollment-token-stdin is required) |
| `--group N` | the folder id the computer goes into; the token's own folder wins |
| `--arch ARCH` | x86_64 (the default) or aarch64 |

Needs enrollment.manage; changes something: needs a token with read and write access; the answer holds secrets or private content. Calls `POST /api/panel/companion/installer`.

```bash quoted
neodesk companion silent-installer --enrollment-token-stdin --group 12 --output neodesk-companion.zip
```

## neodesk companion silent-setup

Show the values of a silent install of NeoDesk Companion and the MSI it uses.

```text quoted
neodesk companion silent-setup [flags]
```

Needs enrollment.manage; only reads. Calls `GET /api/panel/companion/setup`.

## neodesk companion template-create

Make a Companion template: settings new Companions start with.

Give the request body with -f key=value (text), -F key=json (numbers, true or false, lists) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing.

```text quoted
neodesk companion template-create [flags]
```

Needs enrollment.manage; changes something: needs a token with read and write access. Calls `POST /api/companion-templates`.

## neodesk companion template-delete

Delete a Companion template; its enrollment token stops working.

```text quoted
neodesk companion template-delete <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The ID |

Needs enrollment.manage; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls `DELETE /api/companion-templates/{id}`.

## neodesk companion templates

List Companion templates.

```text quoted
neodesk companion templates [flags]
```

Needs enrollment.manage; only reads. Calls `GET /api/companion-templates`.
