<commit_before>..  Copyright (c) 2014-present PlatformIO <<EMAIL>>
    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.

.. _cmd_lib_install:

platformio lib install
======================

.. contents::

Usage
-----

.. code-block:: bash

    platformio lib [STORAGE_OPTIONS] install [OPTIONS] [LIBRARY...]
    pio lib [STORAGE_OPTIONS] install [OPTIONS] [LIBRARY...]

    # install project dependent library
    # (run it from a project root where is located "platformio.ini")
    platformio lib install [OPTIONS] [LIBRARY...]

    # install to global storage
    platformio lib --global install [OPTIONS] [LIBRARY...]
    platformio lib -g install [OPTIONS] [LIBRARY...]

    # install to custom storage
    platformio lib --storage-dir /path/to/dir install [OPTIONS] [LIBRARY...]
    platformio lib -d /path/to/dir1 -d /path/to/dir2 install [OPTIONS] [LIBRARY...]

    # install dependencies for the specific project build environment
    platformio lib -e myenv install [OPTIONS] [LIBRARY...]
    platformio lib -d /path/to/platformio/project -e myenv install [OPTIONS] [LIBRARY...]

    # [LIBRARY...] forms
    platformio lib [STORAGE_OPTIONS] install (with no args, project dependencies)
    platformio lib [STORAGE_OPTIONS] install <id>
    platformio lib [STORAGE_OPTIONS] install id=<id>
    platformio lib [STORAGE_OPTIONS] install <id>@<version>
    platformio lib [STORAGE_OPTIONS] install <id>@<version range>
    platformio lib [STORAGE_OPTIONS] install <name>
    platformio lib [STORAGE_OPTIONS] install <name>@<version>
    platformio lib [STORAGE_OPTIONS] install <name>@<version range><commit_msg>Install all project dependencies declared via "lib_deps" option using "platformio lib install" command<commit_after>..  Copyright (c) 2014-present PlatformIO <<EMAIL>>
    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.

.. _cmd_lib_install:

platformio lib install
======================

.. contents::

Usage
-----

.. code-block:: bash

    platformio lib [STORAGE_OPTIONS] install [OPTIONS] [LIBRARY...]
    pio lib [STORAGE_OPTIONS] install [OPTIONS] [LIBRARY...]

    # install all project dependencies declared via "lib_deps"
    # (run it from a project root where is located "platformio.ini")
    platformio lib install [OPTIONS]

    # install project dependent library
    # (run it from a project root where is located "platformio.ini")
    platformio lib install [OPTIONS] [LIBRARY...]

    # install dependencies for the specific project build environment
    # (run it from a project root where is located "platformio.ini")
    platformio lib -e myenv install [OPTIONS] [LIBRARY...]
    platformio lib -d /path/to/platformio/project -e myenv install [OPTIONS] [LIBRARY...]

    # install to global storage
    platformio lib --global install [OPTIONS] [LIBRARY...]
    platformio lib -g install [OPTIONS] [LIBRARY...]

    # install to custom storage
    platformio lib --storage-dir /path/to/dir install [OPTIONS] [LIBRARY...]
    platformio lib -d /path/to/dir1 -d /path/to/dir2 install [OPTIONS] [LIBRARY...]

    # [LIBRARY...] forms
    platformio lib [STORAGE_OPTIONS] install (with no args, project dependencies)
    platformio lib [STORAGE_OPTIONS] install <id>
    platformio lib [STORAGE_OPTIONS] install id=<id>
    platformio lib [STORAGE_OPTIONS] install <id>@<version>
    platformio lib [STORAGE_OPTIONS] install <id>@<version range>
    platformio lib [STORAGE_OPTIONS] install <name>
    platformio lib [STORAGE_OPTIONS] install <name>@<version>
    platformio lib [STORAGE_OPTIONS] install <name>@<version range>
{'fraction_non_alphanumeric': 0.10433070866141732, 'fraction_numerical': 0.004374453193350831, 'mean_word_length': 3.582164328657315, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '641497', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1280, 'n_words': 504}