Skip to content

[skip-changelog] Reformat install instructions #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 29 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,24 @@ build the source code, run the tests, and contribute your changes to the project

## How to install

### macOS/Linux installation via Homebrew
### Get the latest package

The arduino-cli is available as a brew formula since version `0.5.0`:
```
You have several options to install the latest version of the Arduino CLI
on your system.

#### Install via Homebrew (macOS/Linux)

The Arduino CLI is available as a Homebrew formula since version `0.5.0`:

```console
brew update
brew install arduino-cli
```
### Get the latest package

#### Using the install script
#### Use the install script

The easiest way to get the latest version of `arduino-cli` on any supported platform is using the
`install.sh` script:
The easiest way to get the latest version of `arduino-cli` on any supported
platform is using the `install.sh` script:

```console
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
Expand All @@ -45,9 +50,10 @@ for example `~/local/bin`, set the `BINDIR` environment variable like this:
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/local/bin sh
```

#### Using the latest release links
#### Download the latest packages from Arduino CDN

In order to get the latest stable release for your platform use the following links:
In order to get the latest stable release for your platform you can use the
following links:

- [Linux 64 bit](https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz)
- [Linux 32 bit](https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_32bit.tar.gz)
Expand All @@ -63,17 +69,17 @@ available stable release. Once downloaded, place the executable `arduino-cli` in
**Deprecation notice:** Links in the form `http://downloads.arduino.cc/arduino-cli/arduino-cli-latest-<platform>.tar.bz2`
won't be further updated. That URL will provide arduino-cli 0.3.7-alpha.preview, regardless of further releases.

#### Using the Github release page

Alternatively you can download one of the pre-built binaries for the supported platforms from the
[release page](https://github.com/arduino/arduino-cli/releases). Once downloaded, place the executable
`arduino-cli` into a directory which is in your `PATH`.
#### Download the latest package from the release page on GitHub

### Download a nightly build
Alternatively you can download one of the pre-built binaries for the supported
platforms from the
[release page](https://github.com/arduino/arduino-cli/releases). Once downloaded,
place the executable `arduino-cli` into a directory which is in your `PATH`.

These builds are generated once a day from `master` branch starting at 01:00 GMT
### Get a nightly build

In order to get the latest nightly build for your platform use the following links:
These builds are generated once a day from `master` branch starting at 01:00 GMT.
In order to get the latest nightly build for your platform, use the following links:

- [Linux 64 bit](https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_64bit.tar.gz)
- [Linux 32 bit](https://downloads.arduino.cc/arduino-cli/nightly/arduino-cli_nightly-latest_Linux_32bit.tar.gz)
Expand All @@ -86,16 +92,16 @@ In order to get the latest nightly build for your platform use the following lin
These links return a `302: Found` response, redirecting to latest generated builds by replacing `latest` with the latest
available build date, using the format YYYYMMDD (i.e for 2019/Aug/06 `latest` is replaced with `20190806` )

Checksums for the nightly builds are available at
Checksums for the nightly builds are available at
`https://downloads.arduino.cc/arduino-cli/nightly/nightly-<DATE>-checksums.txt`

Once downloaded, place the executable `arduino-cli` into a directory which is in your `PATH`.

### Build from source with Docker
### Build from source using Docker

If you don't have a working Golang environment or if you want to build `arduino-cli` targeting
different platforms, you can use Docker to get a binary directly from sources. From the project
folder run:
If you don't have a working Golang environment or if you want to build
`arduino-cli` targeting different platforms, you can use Docker to get a binary
directly from sources. From the project folder run:

```console
docker run -v $PWD:/arduino-cli -w /arduino-cli -e PACKAGE_NAME_PREFIX='snapshot' arduino/arduino-cli:builder-1 goreleaser --rm-dist --snapshot --skip-publish
Expand Down Expand Up @@ -134,7 +140,7 @@ void loop() {

### Step 2. Modify your sketch

Use your favourite file editor or IDE to modify the .ino file, in this example
Use your favourite file editor or IDE to modify the .ino file, in this example
under: `$HOME/MyFirstSketch/MyFirstSketch.ino`
and change the file to look like this one:

Expand Down