Usage:
$ pyaxm-cli [OPTIONS] COMMAND [ARGS]...Options:
--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.
Commands:
devices: List all devices in the organization.device: Get a device by ID.apple-care-coverage: Get AppleCare coverage for a device.mdm-servers: List all MDM servers.mdm-server: List devices in a specific MDM server.mdm-server-assigned: Get the server assignment for a device.assign-device: Assign one or more devices to an MDM server.unassign-device: Unassign one or more devices from an MDM...update-mdm-migration-deadline: Update the MDM migration deadline for one...cancel-mdm-migration: Cancel an in-progress MDM migration for...release-device: Release one or more devices from the...audit-events: Get a list of audit events.users: List all users in the organization.user: Get a user by ID.
List all devices in the organization.
Usage:
$ pyaxm-cli devices [OPTIONS]Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Get a device by ID.
Usage:
$ pyaxm-cli device [OPTIONS] {device_id}Arguments:
device_id: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Get AppleCare coverage for a device.
Usage:
$ pyaxm-cli apple-care-coverage [OPTIONS] {device_id}Arguments:
device_id: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
List all MDM servers.
Usage:
$ pyaxm-cli mdm-servers [OPTIONS]Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
List devices in a specific MDM server.
Usage:
$ pyaxm-cli mdm-server [OPTIONS] {server_id}Arguments:
server_id: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Get the server assignment for a device.
Usage:
$ pyaxm-cli mdm-server-assigned [OPTIONS] {device_id}Arguments:
device_id: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Assign one or more devices to an MDM server.
Usage:
$ pyaxm-cli assign-device [OPTIONS] {device_ids}... {server_id}Arguments:
device_ids...: [required]server_id: [required]
Options:
--deadline <str>: Migration deadline: YYYY-MM-DD or ISO 8601 (e.g. 2026-03-15 or 2026-03-15T17:00:00.000Z), max 90 days in the future. When set, devices are assigned with an MDM migration deadline.--format <str>: Output format [default: yaml]--help: Show this message and exit.
Unassign one or more devices from an MDM server.
Usage:
$ pyaxm-cli unassign-device [OPTIONS] {device_ids}... {server_id}Arguments:
device_ids...: [required]server_id: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Update the MDM migration deadline for one or more devices.
Usage:
$ pyaxm-cli update-mdm-migration-deadline [OPTIONS] {device_ids}... {deadline}Arguments:
device_ids...: [required]deadline: Migration deadline: YYYY-MM-DD or ISO 8601 (e.g. 2026-03-15 or 2026-03-15T17:00:00.000Z), max 90 days in the future. [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Cancel an in-progress MDM migration for one or more devices.
Usage:
$ pyaxm-cli cancel-mdm-migration [OPTIONS] {device_ids}...Arguments:
device_ids...: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Release one or more devices from the organization.
Usage:
$ pyaxm-cli release-device [OPTIONS] {device_ids}...Arguments:
device_ids...: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Get a list of audit events.
Usage:
$ pyaxm-cli audit-events [OPTIONS] {start_timestamp} {end_timestamp}Arguments:
start_timestamp: Start date in YYYY-MM-DD or ISO 8601 format. Date-only values are treated as midnight UTC. [required]end_timestamp: End date in YYYY-MM-DD or ISO 8601 format. Date-only values are treated as end of day UTC. [required]
Options:
-a, --actor-id <str>-s, --subject-id <str>-e, --event-type <str>-l, --limit <int>-f, --fields <str>-c, --cursor <str>--format <str>: Output format [default: yaml]--help: Show this message and exit.
List all users in the organization.
Usage:
$ pyaxm-cli users [OPTIONS]Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.
Get a user by ID.
Usage:
$ pyaxm-cli user [OPTIONS] {user_id}Arguments:
user_id: [required]
Options:
--format <str>: Output format [default: yaml]--help: Show this message and exit.