QUERY · ISSUE
docs: mpremote run command
docstools
Documentation URL
https://docs.micropython.org/en/latest/reference/mpremote.html#mpremote-command-run
Description
If you have a main.py on the device and invoke mpremote run /home/davef/main.py then the main.py on the device runs. To work on /home/davef/main.py and run that you can not have a main.py on the device.
Code of Conduct
Yes, I agree
CANDIDATE · ISSUE
'mpremote help' would be nice
tools
I just pip-installed mpremote and was surprised to see:
$ mpremote --help
mpremote: '--help' is not a command
$ mpremote -h
mpremote: '-h' is not a command
$ mpremote h
mpremote: 'h' is not a command
$ mpremote help
mpremote: 'help' is not a command
Simply printing out the
mpremote connect <device> -- connect to given device
device may be: list, auto, id:x, port:x
or any valid device name/path
mpremote disconnect -- disconnect current device
mpremote mount <local-dir> -- mount local directory on device
mpremote eval <string> -- evaluate and print the string
mpremote exec <string> -- execute the string
mpremote run <file> -- run the given local script
mpremote fs <command> <args...> -- execute filesystem commands on the device
command may be: cat, ls, cp, rm, mkdir, rmdir
use ":" as a prefix to specify a file on the device
mpremote repl -- enter REPL
options:
--capture <file>
--inject-code <string>
--inject-file <file>
text (which I've just copied from https://github.com/micropython/micropython/blob/master/tools/mpremote/README.md ) would probably be sufficient?
Also, looking at the command-list above, perhaps it makes sense for mpremote list to do the same thing as mpremote connect list ?