Search the docsCtrl K
Menu
Docs / Command line Updated Edit on GitHub

neodesk folders

Copy as Markdown

Folders that sort devices.

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

neodesk folders add-devices

Put devices into a folder (folder 0 takes them out of theirs).

neodesk folders add-devices <id> --device-ids A,B [flags]
Argument What it is
<id> The folder ID, or 0 for none
Flag What it is
--device-ids A,B the devices (required)

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

neodesk folders create

Create a folder.

neodesk folders create --name NAME [flags]
Flag What it is
--name NAME the name (required)
--color COLOR a color like #3b82f6
--icon ICON an icon name

Needs device.edit; changes something: needs a token with read and write access. Calls POST /api/folders.

neodesk folders delete

Delete a folder. Its devices stay, without a folder.

neodesk folders delete <id> [flags]
Argument What it is
<id> The folder ID

Needs device.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/folders/{id}.

neodesk folders list

List folders with how many devices each holds.

neodesk folders list [flags]

Needs device.view; only reads. Calls GET /api/folders.

neodesk folders move-device

Put one device into a folder, or take it out.

neodesk folders move-device <id> [flags]
Argument What it is
<id> The device ID (see devices list)
Flag What it is
--folder-id N the folder ID; leave out to take it out of its folder

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

neodesk folders update

Rename a folder or change its color.

neodesk folders update <id> [flags]
Argument What it is
<id> The folder ID
Flag What it is
--name NAME new name
--color COLOR new color

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

Type to search pages, sections, commands and settings.