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

neodesk device-tokens

Copy as Markdown

Tokens that let a new device join without approval.

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

neodesk device-tokens bind

Tie a device token to one device.

neodesk device-tokens bind <id> --device DEVICE [flags]
Argument What it is
<id> The device token ID (see device-tokens list)
Flag What it is
--device DEVICE the device ID (required)

Needs enrollment.manage; changes something: needs a token with read and write access. Calls POST /api/panel/tokens/{id}/bind.

neodesk device-tokens create

Make a device token (shown once).

neodesk device-tokens create --name NAME [flags]
Flag What it is
--name NAME what it is for (required)
--max-uses N how many devices may use it (0: no limit)
--expires-in N seconds it lasts (0: never)
--note NOTE a note

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

neodesk device-tokens create-many

Make several device tokens at once.

neodesk device-tokens create-many --count N [flags]
Flag What it is
--count N how many (required)
--name-prefix NAME_PREFIX their names start with this
--max-uses N uses each
--expires-in N seconds each lasts

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

neodesk device-tokens list

List device tokens.

neodesk device-tokens list [flags]
Flag What it is
--include-revoked list revoked tokens too

Needs enrollment.manage; only reads. Calls GET /api/panel/tokens.

neodesk device-tokens revoke

Revoke a device token.

neodesk device-tokens revoke <id> [flags]
Argument What it is
<id> The device token ID (see device-tokens list)

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/panel/tokens/{id}.

neodesk device-tokens update

Change a device token.

neodesk device-tokens update <id> [flags]
Argument What it is
<id> The device token ID (see device-tokens list)
Flag What it is
--name NAME new name
--max-uses N uses
--note NOTE note

Needs enrollment.manage; changes something: needs a token with read and write access. Calls PUT /api/panel/tokens/{id}.

Type to search pages, sections, commands and settings.