← index #15955Issue #7480
Off-topic · high · value 2.543
QUERY · ISSUE

docs: mpremote run command

openby davefesopened 2024-10-02updated 2025-03-03
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

closedby lurchopened 2021-07-01updated 2021-12-29
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 ?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied