user48884: I need to install this library using the arduino-cli software. I don't know what name to use for the library. Using
arduino-cli lib install <library_name>

I have tried Adafruit_MotorShield, Adafruit_MotorShield_V2, and other random combinations and in all cases it cannot found it. In the library manager of the graphical interface it is this one:


user48884: As pointed out by Juraj♦ in the comments, the name to use can be found in the library.properties file. There we find name=Adafruit Motor Shield V2 Library so the command to install the library is:
arduino-cli lib install Adafruit\ Motor\ Shield\ V2\ Library

Note the white spaces are escaped.

48884: <p>I need to install <a href="https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library" rel="nofollow noreferrer">this library</a> using the <a href="https://www.arduino.cc/pro/cli" rel="nofollow noreferrer">arduino-cli</a> software. I don't know what name to use for the library. Using</p>
<pre><code>arduino-cli lib install &lt;library_name&gt;
</code></pre>
<p>I have tried <code>Adafruit_MotorShield</code>, <code>Adafruit_MotorShield_V2</code>, and other random combinations and in all cases it cannot found it. In the library manager of the graphical interface it is this one:</p>
<p><a href="https://i.stack.imgur.com/hOWCA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hOWCA.png" alt="enter image description here" /></a></p>
 48884: <p>As pointed out by Juraj♦ in the comments, the name to use can be found in the <a href="https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library/blob/master/library.properties" rel="nofollow noreferrer"><code>library.properties</code></a> file. There we find <code>name=Adafruit Motor Shield V2 Library</code> so the command to install the library is:</p>
<pre><code>arduino-cli lib install Adafruit\ Motor\ Shield\ V2\ Library
</code></pre>
<p>Note the white spaces are escaped.</p>
