2016-01-01 20:51:48 +02:00
|
|
|
.. Copyright 2014-2016 Ivan Kravets <me@ikravets.com>
|
2015-11-18 17:33:46 +02:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
|
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
|
2016-03-12 21:32:13 +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
|
|
|
|
|
2016-03-12 21:32:13 +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
|
|
|
|
|
2016-03-12 21:32:13 +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
|
|
|
|
|
2016-03-12 21:32:13 +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!
|