mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 21:20:13 +01:00
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>
This commit is contained in:
@@ -146,6 +146,14 @@ The full list of supported commands are:
|
||||
variable ``$EDITOR``). If the editor exits successfully, the updated file will
|
||||
be copied back to the device.
|
||||
|
||||
- install packages from :term:`micropython-lib` (or GitHub) using the ``mip`` tool:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ mpremote mip install <packages...>
|
||||
|
||||
See :ref:`packages` for more information.
|
||||
|
||||
- mount the local directory on the remote device:
|
||||
|
||||
.. code-block:: bash
|
||||
@@ -269,3 +277,9 @@ Examples
|
||||
mpremote cp -r dir/ :
|
||||
|
||||
mpremote cp a.py b.py : + repl
|
||||
|
||||
mpremote mip install aioble
|
||||
|
||||
mpremote mip install github:org/repo@branch
|
||||
|
||||
mpremote mip install --target /flash/third-party functools
|
||||
|
||||
Reference in New Issue
Block a user