Library installation

hello,

i installed a few library to the global storage using the platformio interface. when i move to a project and run “pio lib list” it says me that i am not using any. how i should add the library to the project?

Is possible to add a local folder where i store all my library? and so automatically platfformio looks for them there? how?

Also, which is the correct cli command to use a library from github?

Please take a look at Library Dependency Finder (LDF) and Library Manager Quick Start.