user87430: I have a sketch which I can upload without problem with the Arduino IDE. I installed the arduino-cli  Version: 0.28.0 Commit: 06fb1909 Date: 2022-10-18T15:53:04Z. I want to compile and upload a code on an arduino uno and use the command line
arduino-cli compile --fqbn arduino:avr:uno mysketch.ino

but get the following error:
/path/to/mysketch.ino:44:10: fatal error: LiquidCrystal.h: No such file or directory
 #include <LiquidCrystal.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.



Used platform Version Path
arduino:avr   1.8.5   /Users/user/Library/Arduino15/packages/arduino/hardware/avr/1.8.5

Error during build: exit status 1

how could I proceed to debug?

user37622: The LiquidCrystal library is bundles with Arduino IDE 1 so it is not installed in your sketchbook folder's libraries folder so CLI can't find it.
Install the library with Arduino CLI or simply copy it from Arduino IDE 1 installation folder into libraries folder of your sketchbook.

87430: <p>I have a sketch which I can upload without problem with the Arduino IDE. I installed the arduino-cli  Version: 0.28.0 Commit: 06fb1909 Date: 2022-10-18T15:53:04Z. I want to compile and upload a code on an arduino uno and use the command line</p>
<pre><code>arduino-cli compile --fqbn arduino:avr:uno mysketch.ino
</code></pre>
<p>but get the following error:</p>
<pre><code>/path/to/mysketch.ino:44:10: fatal error: LiquidCrystal.h: No such file or directory
 #include &lt;LiquidCrystal.h&gt;
          ^~~~~~~~~~~~~~~~~
compilation terminated.



Used platform Version Path
arduino:avr   1.8.5   /Users/user/Library/Arduino15/packages/arduino/hardware/avr/1.8.5

Error during build: exit status 1
</code></pre>
<p>how could I proceed to debug?</p>
 37622: <p>The LiquidCrystal library is bundles with Arduino IDE 1 so it is not installed in your sketchbook folder's <code>libraries</code> folder so CLI can't find it.</p>
<p>Install the library with Arduino CLI or simply copy it from Arduino IDE 1 installation folder into <code>libraries</code> folder of your sketchbook.</p>
