Skip to main content
Glama
DriverCommand.kt1.39 kB
package maestro.cli.command import maestro.cli.driver.DriverBuilder import maestro.cli.driver.RealIOSDeviceDriver import picocli.CommandLine import java.util.concurrent.Callable @CommandLine.Command( name = "driver-setup", description = [ "Setup maestro drivers on your devices. Right now works for real iOS devices" ], hidden = true ) class DriverCommand : Callable<Int> { @CommandLine.Option( names = ["--apple-team-id"], description = ["The Team ID is a unique 10-character string generated by Apple that is assigned to your team's apple account."], hidden = true ) private var appleTeamId: String? = null @CommandLine.Option( names = ["--destination"], description = ["Destination device to build the driver for. Defaults to generic/platform=iphoneos if not specified."], hidden = true ) private var destination: String? = null override fun call(): Int { val teamId = requireNotNull(appleTeamId) { "Apple account team ID must be specified." } val destination = destination ?: "generic/platform=iphoneos" val driverBuilder = DriverBuilder() RealIOSDeviceDriver( teamId = teamId, destination = destination, driverBuilder = driverBuilder, ).validateAndUpdateDriver(force = true) return 0 } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mobile-dev-inc/Maestro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server