diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2022-09-29 00:45:34 +1000 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2022-10-01 22:44:24 +1000 |
| commit | 12ca918eb2ac062f6e6df0772e528eef9d050cb7 (patch) | |
| tree | 49be20380cce7d51d63a9dbf03b8628c622f1cb3 /tools/mpremote/README.md | |
| parent | 68d094358ec71aa8cdec97e9e6fc3c6d46dedfbf (diff) | |
tools/mpremote: Add `mpremote mip install` to install packages.
This supports the same package sources as the new `mip` tool.
- micropython-lib (by name)
- http(s) & github packages with json description
- directly downloading a .py/.mpy file
The version is specified with an optional `@version` on the end of the
package name. The target dir, index, and mpy/no-mpy can be set through
command line args.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tools/mpremote/README.md')
| -rw-r--r-- | tools/mpremote/README.md | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/tools/mpremote/README.md b/tools/mpremote/README.md index c294b2081..7f58788fb 100644 --- a/tools/mpremote/README.md +++ b/tools/mpremote/README.md @@ -11,23 +11,28 @@ This will automatically connect to the device 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/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> - mpremote help -- print list of commands and exit + 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> + mpremote mip install <package...> -- Install packages (from micropython-lib or third-party sources) + options: + --target <path> + --index <url> + --no-mpy + mpremote help -- print list of commands and exit Multiple commands can be specified and they will be run sequentially. Connection and disconnection will be done automatically at the start and end of the execution @@ -73,3 +78,5 @@ Examples: mpremote cp :main.py . mpremote cp main.py : mpremote cp -r dir/ : + mpremote mip install aioble + mpremote mip install github:org/repo@branch |
