1- ### Install via Homebrew (macOS/Linux)
1+ <!-- Source: https://github.com/arduino/tooling-project-assets/blob/main/other/installation-script/installation.md -->
2+
3+ ## Install via Homebrew (macOS/Linux)
24
35The Arduino CLI is available as a Homebrew formula since version ` 0.5.0 ` :
46
@@ -7,34 +9,34 @@ brew update
79brew install arduino-cli
810```
911
10- #### Command line completion
12+ ### Command line completion
1113
1214[ Command line completion] ( command-line-completion.md#brew ) files are already bundled in the homebrew installation.
1315
14- ### Use the install script
16+ ## Use the install script
1517
16- The script requires ` sh ` . This is always available on Linux and macOS. ` sh ` is not available by default on Windows. The
17- script may be run on Windows by installing [ Git for Windows] , then running it from Git Bash.
18+ The script requires ` sh ` , which is always available on Linux and macOS. ` sh ` is not available by default on Windows. The
19+ script can be run on Windows by installing [ Git for Windows] ( https://gitforwindows.org/ ) , then running it from Git Bash.
1820
1921This script will install the latest version of Arduino CLI to ` $PWD/bin ` :
2022
21- ``` sh
23+ ```
2224curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
2325```
2426
2527If you want to target a different directory, for example ` ~/local/bin ` , set the ` BINDIR ` environment variable like this:
2628
27- ``` sh
29+ ```
2830curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/local/bin sh
2931```
3032
3133If you would like to use the ` arduino-cli ` command from any location, install Arduino CLI to a directory already in your
3234` PATH ` or add the Arduino CLI installation path to your ` PATH ` environment variable.
3335
34- If you want to download a specific arduino-cli version, for example ` 0.9.0 ` , pass the version number as a parameter like
35- this:
36+ If you want to download a specific Arduino CLI version, for example ` 0.9.0 ` or ` nightly-latest ` , pass the version number
37+ as a parameter like this:
3638
37- ``` sh
39+ ```
3840curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.9.0
3941```
4042
@@ -45,75 +47,58 @@ Pre-built binaries for all the supported platforms are available for download fr
4547If you would like to use the ` arduino-cli ` command from any location, extract the downloaded file to a directory already
4648in your ` PATH ` or add the Arduino CLI installation path to your ` PATH ` environment variable.
4749
48- #### Latest packages
50+ #### Latest release
4951
50- | Platform | | |
51- | --------- | ------------------ | ------------------ |
52- | Linux | [ Linux 32 bit] | [ Linux 64 bit] |
53- | Linux ARM | [ Linux ARM 32 bit] | [ Linux ARM 64 bit] |
54- | Windows | [ Windows 32 bit] | [ Windows 64 bit] |
55- | Mac OSX | | [ Mac OSX ] |
52+ | Platform | | |
53+ | --------- | -------------------- | -- ------------------ |
54+ | Linux | [ 32 bit] [ linux32 ] | [ 64 bit] [ linux64 ] |
55+ | Linux ARM | [ 32 bit] [ linuxarm32 ] | [ 64 bit] [ linuxarm64 ] |
56+ | Windows | [ 32 bit] [ windows32 ] | [ 64 bit] [ windows64 ] |
57+ | macOS | | [ 64 bit ] [ macos ] |
5658
57- [ linux 64 bit ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz
58- [ linux 32 bit ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_32bit.tar.gz
59- [ linux arm 64 bit ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_ARM64.tar.gz
60- [ linux arm 32 bit ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_ARMv7.tar.gz
61- [ windows 64 bit ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip
62- [ windows 32 bit ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_32bit.zip
63- [ mac osx ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_macOS_64bit.tar.gz
59+ [ linux64 ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz
60+ [ linux32 ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_32bit.tar.gz
61+ [ linuxarm64 ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_ARM64.tar.gz
62+ [ linuxarm32 ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_ARMv7.tar.gz
63+ [ windows64 ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip
64+ [ windows32 ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_32bit.zip
65+ [ macos ] : https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_macOS_64bit.tar.gz
6466
6567> ** Deprecation notice** : links in the form
6668> ` http://downloads.arduino.cc/arduino-cli/arduino-cli-latest-<platform>.tar.bz2 ` won’t be further updated. That URL
6769> will provide the version ` 0.3.7-alpha.preview ` , regardless of further releases.
6870
6971#### Previous versions
7072
71- These are available from the [ releases page] ( https://github.com/arduino/arduino-cli/releases )
73+ These are available from the "Assets" sections on the [ releases page] ( https://github.com/arduino/arduino-cli/releases ) .
7274
7375#### Nightly builds
7476
7577These builds are generated every day at 01:00 GMT from the ` master ` branch and should be considered unstable. In order
7678to get the latest nightly build available for the supported platform, use the following links:
7779
78- | Platform | | |
79- | --------- | -------------------------- | -------------------------- |
80- | Linux | [ Nightly Linux 32 bit] | [ Nightly Linux 64 bit] |
81- | Linux ARM | [ Nightly Linux ARM 32 bit] | [ Nightly Linux ARM 64 bit] |
82- | Windows | [ Nightly Windows 32 bit] | [ Nightly Windows 64 bit] |
83- | Mac OSX | | [ Nightly Mac OSX] |
84-
85- [ nightly linux 64 bit ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_64bit.tar.gz
86- [ nightly linux 32 bit ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_32bit.tar.gz
87-
88- <!-- prettier-ignore -->
89- [ nightly linux arm 64 bit ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_ARM64.tar.gz
90-
91- <!-- prettier-ignore -->
92- [ nightly linux arm 32 bit ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_ARMv7.tar.gz
93- [ nightly windows 64 bit ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Windows_64bit.zip
94- [ nightly windows 32 bit ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Windows_32bit.zip
95- [ nightly mac osx ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_macOS_64bit.tar.gz
80+ | Platform | | |
81+ | --------- | ---------------------------- | ---------------------------- |
82+ | Linux | [ 32 bit] [ linux32-nightly ] | [ 64 bit] [ linux64-nightly ] |
83+ | Linux ARM | [ 32 bit] [ linuxarm32-nightly ] | [ 64 bit] [ linuxarm64-nightly ] |
84+ | Windows | [ 32 bit] [ windows32-nightly ] | [ 64 bit] [ windows64-nightly ] |
85+ | macOS | | [ 64 bit] [ macos-nightly ] |
86+
87+ [ linux64-nightly ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_64bit.tar.gz
88+ [ linux32-nightly ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_32bit.tar.gz
89+ [ linuxarm64-nightly ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_ARM64.tar.gz
90+ [ linuxarm32-nightly ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_ARMv7.tar.gz
91+ [ windows64-nightly ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Windows_64bit.zip
92+ [ windows32-nightly ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Windows_32bit.zip
93+ [ macos-nightly ] : https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_macOS_64bit.tar.gz
9694
9795> These links return a ` 302: Found ` response, redirecting to latest generated builds by replacing ` latest ` with the
98- > latest available build date, using the format YYYYMMDD (i.e for 2019/Aug/ 06 ` latest ` is replaced with ` 20190806 ` )
96+ > latest available build date, using the format YYYYMMDD (i.e for 2019-08- 06 ` latest ` is replaced with ` 20190806 ` )
9997
10098Checksums for the nightly builds are available at
10199` https://downloads.arduino.cc/arduino-cli/nightly/nightly-<DATE>-checksums.txt `
102100
103101### Build from source
104102
105- If you’re familiar with Golang or if you want to contribute to the project, you will probably build the ` arduino-cli `
106- locally with your Go toolchain. Please refer to the [ CONTRIBUTING] document for setup instructions.
107-
108- If you don’t have a working Golang environment or if you want to build ` arduino-cli ` targeting different platforms, you
109- can use [ Task] [ task-site ] to get a binary directly from sources. From the project folder run:
110-
111- ``` sh
112- task dist:all
113- ```
114-
115- Once the build is over, you will find a ` ./dist/ ` folder containing the packages built out of the current source tree.
116-
117- [ git for windows ] : https://gitforwindows.org/
118- [ contributing ] : CONTRIBUTING.md
119- [ task-site ] : https://taskfile.dev/#/installation
103+ If you're familiar with Golang or if you want to contribute to the project, you will probably build Arduino CLI locally
104+ with your Go toolchain. See the [ "How to contribute"] ( CONTRIBUTING.md#building-the-source-code ) page for instructions.
0 commit comments