MDM Commands to be added please

Issue #336 closed
Eugene Myburgh created an issue

Hi Tim

Could you kindly add the commands to ver 2.1 or 3.0
Also , can we add search for device and multi select.

eg if I would like to install a profile for 3 devices , if I could cmd select the 3 and then install profile

Please advice if I have the incorrect commands

  1. Install PKG File from command

app

USAGE
  mdmctl apply app [flags]

FLAGS
  -manifest -        path to an app manifest. optional,
                     will be created if file does not exist.
  -md5size 10485760  md5 hash size in bytes (optional)
  -pkg               path to a distribution pkg.
  -pkg-url           use custom pkg url
  -sign              sign package before importing, requires specifying a product ID (optional)
  -upload false      upload package and/or manifest to micromdm repository.

2.

block device with 6 digit passcode

block

USAGE
  mdmctl apply block [flags]

FLAGS
  -udid   UDID of a device to block.

3.

remove block

block

USAGE
  mdmctl remove block [flags]

FLAGS
  -udid   UDID of device to unblock

4.

remove profile

profiles

USAGE
  mdmctl remove profiles [flags]

FLAGS
  -id   profile Identifier, optionally comma separated

5.

Erase Device

#!/bin/bashsource $MICROMDM_ENV_PATHendpoint="v1/commands"jq -n \ --arg request_type "EraseDevice" \ --arg udid "$1" \ --arg pin $2 \ '.udid = $udid |.pin = $pin |.request_type = $request_type '|\ curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-

Thank you

E

Comments (5)

  1. Log in to comment