mpremote
microPython remote control tool
TLDR
Connect to device
$ mpremote
Run Python code$ mpremote exec "[print('hello')]"
Copy file to device$ mpremote cp [local.py] :[remote.py]
Copy file from device$ mpremote cp :[remote.py] [local.py]
Run script on device$ mpremote run [script.py]
Enter REPL$ mpremote repl
List files on device$ mpremote ls
Mount local directory$ mpremote mount [.]
SYNOPSIS
mpremote [command] [options]
DESCRIPTION
mpremote is the MicroPython remote control tool. It manages MicroPython devices.
The tool copies files, runs code, and provides REPL access. Works over USB serial.
PARAMETERS
COMMAND
Operation to perform.connect DEVICE
Connect to specific device.exec CODE
Execute Python code.cp SRC DST
Copy files (: prefix for device).run FILE
Run local script on device.repl
Enter interactive REPL.--help
Display help information.
CAVEATS
Requires MicroPython device. Serial connection needed. Python 3 required.
HISTORY
mpremote was developed by the MicroPython project as the official device management tool.
