Skip to content

Instantly share code, notes, and snippets.

@cgalvist
Last active August 17, 2024 22:52
Show Gist options
  • Save cgalvist/4f97e6624d086eb82c661b57b504c996 to your computer and use it in GitHub Desktop.
Save cgalvist/4f97e6624d086eb82c661b57b504c996 to your computer and use it in GitHub Desktop.
Arduino-CLI Commands

Install dependencies

Linux (Steps for Ubuntu 24.04)

# Install cpplint
sudo apt install cpplint
# Install arduino-cli
mkdir -p ~/.bin/arduino-cli
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.bin/arduino-cli/ sh

Add arduino-cli path:

Open .bashrc file and add the following lines:

# Export arduino-cli path
export PATH="$PATH:$HOME/.bin/arduino-cli"

Apply the changes with source .bashrc command

Useful commands

# Update database
arduino-cli core update-index
# Search cores by name (example: digispark)
arduino-cli core search digispark
# Search available boards by name (example: digispark)
arduino-cli board listall digispark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment