Files
platformio-core/docs/userguide/lib/cmd_install.rst

75 lines
1.8 KiB
ReStructuredText
Raw Normal View History

2014-09-06 13:44:45 +03:00
.. _cmd_lib_install:
platformio lib install
======================
.. contents::
Usage
-----
.. code-block:: bash
platformio lib install [OPTIONS] [LIBRARY_ID]
2014-09-06 13:44:45 +03:00
Description
-----------
Install new library by specified
`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
# IRremote: http://platformio.org/#!/lib/show/4/IRremote
$ 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
# XBee: http://platformio.org/#!/lib/show/6/XBee
$ 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
# Adafruit-ST7735: http://platformio.org/#!/lib/show/12/Adafruit-ST7735
$ 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!