Global Flags
Top-Level Commands
Authentication
m87 login
Authenticate with make87 via browser-based OAuth flow.
m87 logout
Logout and clear local credentials.
Device Management
m87 devices list
List all accessible devices.
m87 devices approve <device>
Approve a pending device registration.
m87 devices reject <device>
Reject a pending device registration.
m87 devices show <device>
Show detailed information about a specific device.
This command is not yet fully implemented.
File Operations
m87 cp <source> <dest>
Copy files between local and remote devices (SCP-style).
m87 sync <source> <dest>
Sync files between local and remote devices (rsync-style).
m87 ls <path>
List files on a device.
Utility Commands
m87 version
Show CLI version information including build details and platform.
m87 update
Update the CLI to the latest version.
Configuration
m87 config set
Set configuration values.
Override API URL (e.g., https://eu.public.make87.dev)
m87 config show
Display current configuration.
m87 config file
Show path to configuration file.
SSH Commands
m87 ssh enable
Enable SSH host resolution for .m87 domains.
m87 ssh disable
Disable SSH host resolution.
MCP Server
m87 mcp
Start MCP server (Model Context Protocol) for AI agent integration. The server runs on stdin/stdout and exposes m87 platform commands as MCP tools.
Device Commands
Device commands follow the patternm87 <device> <command>. These commands operate on a specific device.
m87 <device> shell
Open an interactive shell on the device.
m87 <device> exec
Execute a command on the device.
m87 <device> forward
Forward remote port(s) to localhost.
Port forwarding specifications. Supports:
- Single port:
8080 - Port mapping:
3000:8080(local:remote) - Port range:
8080-8090 - Range mapping:
8080-8090:9080-9090 - With host:
8080:192.168.1.50:9080 - With protocol:
8080/udp(default: tcp)
m87 <device> docker
Run docker commands on the device.
m87 <device> logs
Stream container logs from the device.
m87 <device> metrics
Show device system metrics (CPU, memory, disk, network).
m87 <device> stats
m87 <device> status
Show device status including health, crashes, and incidents.
m87 <device> audit
View audit logs showing who interacted with the device.
m87 <device> serial
Connect to a serial device.
Deployment Commands
Deployment commands manage asynchronous job execution on devices.m87 <device> deploy
Add a run spec to a deployment.
m87 <device> undeploy
Remove a run spec from a deployment.
m87 <device> deployment list
List all deployments for the device.
m87 <device> deployment new
Create a new deployment.
m87 <device> deployment show
Show deployment details including run specs.
m87 <device> deployment status
Get deployment execution status.
m87 <device> deployment active
Print the currently active deployment ID.
m87 <device> deployment activate
Set the active deployment.
m87 <device> deployment rm
Remove a deployment.
m87 <device> deployment clone
Clone an existing deployment into a new one.
m87 <device> deployment update
Update a deployment (remove/replace/rename specs).
Device Access Control
m87 <device> access list
List users with access to the device.
m87 <device> access add
Grant access to a user or organization.
m87 <device> access remove
Revoke access from a user or organization.
m87 <device> access update
Update user or organization role.
Organization Commands
m87 org list
List all organizations.
m87 org create
Create a new organization.
m87 org delete
Delete an organization.
m87 org update
Update organization ID.
Organization Members
m87 org members list
List organization members.
m87 org members add
Add a member to the organization.
m87 org members update
Update a member’s role.
m87 org members remove
Remove a member from the organization.
Organization Devices
m87 org devices list
List devices owned by the organization.
m87 org devices add
Add a device to the organization.
m87 org devices remove
Remove a device from the organization.
Runtime Commands (Linux Only)
These commands manage the m87 runtime service on Linux devices. Most require root privileges and automatically invokesudo.
m87 runtime login
Register this device as a runtime (headless flow, requires approval).
m87 devices approve <device>.