Arduino-cli library installing error : "enable_unsafe_install is false"

Hello.
I Want to install a local .zip library with arduino-cli. but i got this error;
--git-url and --zip-path are disabled by default.

this is my command;
arduino-cli lib install --zip-path C:\Users\Ben\Desktop\NewPing_v1.9.0.zip

How can i set enable_unsafe_install to true?

Hi @mbksoft. You can learn about configuring Arduino CLI here:
https://arduino.github.io/arduino-cli/latest/configuration/

To summarize, you have two options:

You can add the enable_unsafe_install key to your arduino-cli.yaml file:

library:
  enable_unsafe_install: true

Or you can configure it by setting the environment variable:

set ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.