This will cover the installation of arduino-cli in GNU/Linux systems running bash. If you are using a shell that is not the "default" bash, your file paths will be different.
- Create an installation directory and navigate to it: Using "/home/user/ardu-cli/" in this example.
- Running the install script:
- Add to PATH: If the CLI is not found when you type arduino-cli in the terminal, add the install directory to your PATH and restart your shell.
- Verify Installation:
- Setting up arduino-cli config:
$ mkdir /home/user/ardu-cli/ && cd /home/user/ardu-cli/
$ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
In case the link has changed, you can find it here.
$ export PATH="/home/user/ardu-cli/:$PATH"
$ source ~/.bashrc
$ arduino-cli version
$ arduino-cli config init
This should output something like this:
$ arduino-cli config init
Configuration file written to: /home/user/.arduino15/arduino-cli.yaml