There are mulitple ways of handling libraries in arduino-cli. This example will use LiquidCrystal_I2C as the library.

By name



Manually

If you need a library which is not in the standard list, e.g. your own library, a very new or unknown library, you can manually put (or e.g. git clone) the library in your user's library folder:

$ cd ~/Arduino/libraries

There you can also just delete, edit or replace it to update / uninstall.