Learn how to use Android Debug Bridge to access the command-line shell on Portenta X8.
Before you begin
- Connect your Portenta X8 to your computer using a USB cable.
- Install the Arduino Mbed OS Portenta Boards package using the Boards Manager in Arduino IDE or Arduino CLI.
- If you do not wish to install the board package, you can download the Android SDK Platform-Tools from here. Note that you’ll need to modify the commands in the next step.
Connect to the command-line shell
Follow these steps to connect to the Linux command-line shell on Portenta X8:
Windows
-
Open Command Prompt.
-
Run the following command to enter the
adb
folder:cd %localappdata%\Arduino15\packages\arduino\tools\adb
-
Run this command to list the installed versions:
dir
-
Open the installed version:
cd <folder name>
-
Run this command to open the shell:
adb.exe shell
macOS
-
Open Terminal.
-
Run the following command to enter the
adb
folder:cd ~/Library/Arduino15/packages/arduino/tools/adb
-
Run this command to list the installed versions:
ls
-
Open the installed version:
cd <folder name>
-
Run this command to open the shell:
./adb shell
Linux
-
Open Terminal.
-
Run the following command to enter the
adb
folder:cd ~/.arduino15/packages/arduino/tools/adb
-
Run this command to list the installed versions:
ls
-
Open the installed version:
cd <folder name>
-
Run this command to open the shell:
./adb shell