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)
2
4
3
5
The Arduino CLI is available as a Homebrew formula since version ` 0.5.0 ` :
4
6
@@ -7,34 +9,34 @@ brew update
7
9
brew install arduino-cli
8
10
```
9
11
10
- #### Command line completion
12
+ ### Command line completion
11
13
12
14
[ Command line completion] ( command-line-completion.md#brew ) files are already bundled in the homebrew installation.
13
15
14
- ### Use the install script
16
+ ## Use the install script
15
17
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.
18
20
19
21
This script will install the latest version of Arduino CLI to ` $PWD/bin ` :
20
22
21
- ``` sh
23
+ ```
22
24
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
23
25
```
24
26
25
27
If you want to target a different directory, for example ` ~/local/bin ` , set the ` BINDIR ` environment variable like this:
26
28
27
- ``` sh
29
+ ```
28
30
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/local/bin sh
29
31
```
30
32
31
33
If you would like to use the ` arduino-cli ` command from any location, install Arduino CLI to a directory already in your
32
34
` PATH ` or add the Arduino CLI installation path to your ` PATH ` environment variable.
33
35
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:
36
38
37
- ``` sh
39
+ ```
38
40
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s 0.9.0
39
41
```
40
42
@@ -45,75 +47,58 @@ Pre-built binaries for all the supported platforms are available for download fr
45
47
If you would like to use the ` arduino-cli ` command from any location, extract the downloaded file to a directory already
46
48
in your ` PATH ` or add the Arduino CLI installation path to your ` PATH ` environment variable.
47
49
48
- #### Latest packages
50
+ #### Latest release
49
51
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 ] |
56
58
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
64
66
65
67
> ** Deprecation notice** : links in the form
66
68
> ` http://downloads.arduino.cc/arduino-cli/arduino-cli-latest-<platform>.tar.bz2 ` won’t be further updated. That URL
67
69
> will provide the version ` 0.3.7-alpha.preview ` , regardless of further releases.
68
70
69
71
#### Previous versions
70
72
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 ) .
72
74
73
75
#### Nightly builds
74
76
75
77
These builds are generated every day at 01:00 GMT from the ` master ` branch and should be considered unstable. In order
76
78
to get the latest nightly build available for the supported platform, use the following links:
77
79
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
96
94
97
95
> 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 ` )
99
97
100
98
Checksums for the nightly builds are available at
101
99
` https://downloads.arduino.cc/arduino-cli/nightly/nightly-<DATE>-checksums.txt `
102
100
103
101
### Build from source
104
102
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