# neodesk sites

Quelle: https://docs.neode.sk/de/command-line/reference/sites/
Zuletzt geändert: 2026-12-03

> 11 Befehle. Standorte mit ihren Netzen und Relay-Knoten, und Geräte und Ordner, die fest zu einem Standort gehören.

Standorte mit ihren Netzen und Relay-Knoten, und Geräte und Ordner, die fest zu einem Standort gehören.

Die Befehle stehen hier auf Englisch, so wie die Kommandozeile sie mit `neodesk sites --help` zeigt. Die Flags, die jeder Befehl kennt, stehen in der [Befehlsreferenz](https://docs.neode.sk/de/command-line/reference.md#flags-for-every-command).

## neodesk sites create

Create a site.

```text quoted
neodesk sites create --name NAME [flags]
```

| Flag | What it is |
|---|---|
| `--name NAME` | the name, 1 to 100 characters (required) |
| `--org-id ORG_ID` | the organization the site belongs to; leave out for an account in one organization or for no organization |
| `--vpn-group VPN_GROUP` | a label shared by sites a VPN connects |

Needs server.config or org.edit; changes something: needs a token with read and write access. Calls `POST /api/sites`.

## neodesk sites delete

Delete a site with its networks and pins. Its relay nodes are refused from then on.

```text quoted
neodesk sites delete <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The site ID (see sites list) |

Needs server.config or org.edit; 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/sites/{id}`.

## neodesk sites list

List sites with their networks, relay nodes and device counts.

--json shows the networks and each relay node with its online state, version, addresses, active sessions and traffic.

```text quoted
neodesk sites list [flags]
```

Needs device.view; only reads. Calls `GET /api/sites`.

## neodesk sites networks-set

Replace the networks of a site.

Give the list with --data, each network as {"cidr":"10.1.0.0/16","kind":"private"} or kind public. One wrong entry changes nothing; the answer names it.

```text quoted
neodesk sites networks-set <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The site ID (see sites list) |

Needs server.config or org.edit; changes something: needs a token with read and write access. Calls `PUT /api/sites/{id}/networks`.

```text quoted
neodesk sites networks-set <id> --data '{"networks":[{"cidr":"10.1.0.0/16","kind":"private"}]}'
```

## neodesk sites node-rename

Rename a relay node.

```text quoted
neodesk sites node-rename <id> --name NAME [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The relay node ID (see sites list --json) |

| Flag | What it is |
|---|---|
| `--name NAME` | new name (required) |

Needs server.config or org.edit; changes something: needs a token with read and write access. Calls `PATCH /api/relay-nodes/{id}`.

## neodesk sites node-revoke

Revoke a relay node: it gets no more sessions and can't connect again.

```text quoted
neodesk sites node-revoke <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The relay node ID (see sites list --json) |

Needs server.config or org.edit; 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 `POST /api/relay-nodes/{id}/revoke`.

## neodesk sites node-token

Make an enrollment string that adds one relay node to a site within 24 hours.

The answer holds the string and the install commands for Linux, Docker and Windows. It is shown once.

```text quoted
neodesk sites node-token <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The site ID (see sites list) |

Needs server.config or org.edit; changes something: needs a token with read and write access; the answer holds secrets or private content. Calls `POST /api/sites/{id}/enrollment-tokens`.

## neodesk sites pin-device

Pin a device to a site, or take its pin away.

```text quoted
neodesk sites pin-device <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The device ID (see devices list) |

| Flag | What it is |
|---|---|
| `--site-id SITE_ID` | the site ID; leave out or empty to take the pin away |

Needs device.edit; changes something: needs a token with read and write access. Calls `PATCH /api/devices/{id}/site`.

## neodesk sites pin-folder

Pin a folder's devices to a site, or take the pin away.

```text quoted
neodesk sites pin-folder <id> [flags]
```

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

| Flag | What it is |
|---|---|
| `--site-id SITE_ID` | the site ID; leave out or empty to take the pin away |

Needs device.edit; changes something: needs a token with read and write access. Calls `PATCH /api/folders/{id}/site`.

## neodesk sites reachability

Show which relay nodes reach each other.

```text quoted
neodesk sites reachability [flags]
```

Needs device.view; only reads. Calls `GET /api/sites/reachability`.

## neodesk sites update

Rename a site or change its VPN group.

```text quoted
neodesk sites update <id> [flags]
```

| Argument | What it is |
|---|---|
| `<id>` | The site ID (see sites list) |

| Flag | What it is |
|---|---|
| `--name NAME` | new name |
| `--vpn-group VPN_GROUP` | new VPN group, empty for none |

Needs server.config or org.edit; changes something: needs a token with read and write access. Calls `PATCH /api/sites/{id}`.
