arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

arduino-cli commands not recognized across folders

Open MicheleCioccarelli opened this issue 5 years ago • 3 comments
trafficstars

I recently downloaded the arduino-cli and i was following the official tutorial to get started, but the command line kept saying that it didn't recognize "arduino-cli" Today i discovered that if I place the file "arduino-cli.exe" in the folder I am working on, everything is fine. Is this intended?

MicheleCioccarelli avatar May 13 '20 16:05 MicheleCioccarelli

@MicheleCioccarelli The arduino-cli.exe command should be reachable within your system's search path. Because on Windows you don't have an installer but just download the .exe file you'll have to manually copy it it some path your system can reach easily. You can take a look at this article (first one which came out of a google search) and it should apply. Let me know if you sort it out.

@rsora I was surprised this bit about installing on Windows is not part of the doc :)

ubidefeo avatar May 13 '20 16:05 ubidefeo

I summon @per1234 to the rescue :smile_cat: We could also think about generating a .msi installer as I saw here

rsora avatar May 13 '20 17:05 rsora

documentation is key, but I'll leave the decision to create an .msi installer to you. I don't like that much when it comes to command line tools, but it's just my opinion ;)

ubidefeo avatar May 13 '20 18:05 ubidefeo

Hi @MicheleCioccarelli we now have a MSI installer :partying_face: This installer will also place the binary in the windows PATH env variable.

umbynos avatar Oct 18 '22 13:10 umbynos

https://github.com/arduino/arduino-cli/releases/download/0.28.0-rc.1/arduino-cli_0.28.0-rc.1_Windows_64bit.msi

umbynos avatar Oct 18 '22 17:10 umbynos