2014-09-06 13:44:45 +03:00
|
|
|
.. _cmd_lib_install:
|
|
|
|
|
|
|
|
platformio lib install
|
|
|
|
======================
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2014-10-19 00:14:11 +03:00
|
|
|
platformio lib install [OPTIONS] [LIBRARY_ID]
|
2014-09-06 13:44:45 +03:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
2014-10-19 00:14:11 +03:00
|
|
|
Install new library by specified
|
2014-12-30 23:22:42 +02:00
|
|
|
`PlatformIO Library Registry ID <http://platformio.org/#!/lib>`_.
|
2014-09-06 13:44:45 +03:00
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
|
|
|
|
2015-05-07 16:44:56 +01:00
|
|
|
.. program:: platformio lib install
|
|
|
|
|
2014-09-06 13:44:45 +03:00
|
|
|
.. option::
|
|
|
|
-v, --version
|
|
|
|
|
|
|
|
Install specified version of library
|
|
|
|
|
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
1. Install the latest version of library
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2014-12-30 23:22:42 +02:00
|
|
|
# IRremote: http://platformio.org/#!/lib/show/4/IRremote
|
2014-10-19 00:14:11 +03:00
|
|
|
$ platformio lib install 4
|
2014-10-22 23:52:17 +03:00
|
|
|
# Installing library [ 4 ]:
|
|
|
|
# Downloading [####################################] 100%
|
|
|
|
# Unpacking [####################################] 100%
|
|
|
|
# The library #4 'IRremote' has been successfully installed!
|
2014-09-06 13:44:45 +03:00
|
|
|
|
|
|
|
|
|
|
|
2. Install specified version of library
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2014-12-30 23:22:42 +02:00
|
|
|
# XBee: http://platformio.org/#!/lib/show/6/XBee
|
2014-10-19 00:14:11 +03:00
|
|
|
$ platformio lib install 6 --version=0.5
|
2014-10-22 23:52:17 +03:00
|
|
|
# Installing library [ 6 ]:
|
|
|
|
# Downloading [####################################] 100%
|
|
|
|
# Unpacking [####################################] 100%
|
|
|
|
# The library #6 'XBee' has been successfully installed!
|
2014-09-06 13:44:45 +03:00
|
|
|
|
|
|
|
|
|
|
|
3. Install library with dependencies
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2014-12-30 23:22:42 +02:00
|
|
|
# Adafruit-ST7735: http://platformio.org/#!/lib/show/12/Adafruit-ST7735
|
2014-10-19 00:14:11 +03:00
|
|
|
$ platformio lib install 12
|
2014-10-22 23:52:17 +03:00
|
|
|
# Installing library [ 12 ]:
|
|
|
|
# Downloading [####################################] 100%
|
|
|
|
# Unpacking [####################################] 100%
|
|
|
|
# The library #12 'Adafruit-ST7735' has been successfully installed!
|
|
|
|
# Installing dependencies:
|
|
|
|
# Installing library [ 13 ]:
|
|
|
|
# Downloading [####################################] 100%
|
|
|
|
# Unpacking [####################################] 100%
|
|
|
|
# The library #13 'Adafruit-GFX' has been successfully installed!
|