You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This CLI tool provides an integrated set of utilities to remotely interact withand automate a MicroPython device over a serial connection.
The simplest way to use this tool is:
mpremote
This will automatically connect to a USB serial port and provide an interactive REPL.
The full list of supported commands are:
mpremote connect <device> -- connect to given device device may be: list, auto, id:x, port:x or any valid device name/pathmpremote disconnect -- disconnect current devicempremote mount <local-dir> -- mount local directory on devicempremote eval <string> -- evaluate and print the stringmpremote exec <string> -- execute the stringmpremote run <file> -- run the given local scriptmpremote fs <command> <args...> -- execute filesystem commands on the device command may be: cat, ls, cp, rm, mkdir, rmdir, sha256sum use ":" as a prefix to specify a file on the devicempremote repl -- enter REPL options: --capture <file> --inject-code <string> --inject-file <file>mpremote mip install <package...> -- Install packages (from micropython-lib or third-party sources) options: --target <path> --index <url> --no-mpympremote help -- print list of commands and exit
Multiple commands can be specified and they will be run sequentially. Connectionand disconnection will be done automatically at the start and end of the executionof the tool, if such commands are not explicitly given. Automatic connection willsearch for the first available serial device. If no action is specified then theREPL will be entered.
Shortcuts can be defined using the macro system. Built-in shortcuts are: