Search the docs
Menu
Updated Edit on GitHub

neodesk sites

Copy as Markdown

Sites with their networks and relay nodes, and pinning devices and folders to a site.

neodesk sites --help lists the same commands in the terminal. The flags every command takes are in the command reference.

neodesk sites create

Create a site.

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.

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.

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.

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.

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

neodesk sites node-rename

Rename a relay node.

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.

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.

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.

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.

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.

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.

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

Type to search pages, sections, commands and settings.