Aria Gen2 CLI Reference
The Aria Gen2 CLI (aria_gen2) provides command-line access to device control, streaming, recording, and authentication operations for Aria devices.
This page documents the CLI as shipped in projectaria-client-sdk 2.5.0. Run aria_gen2 --version to check the version you have installed, and aria_gen2 <command> --help for the authoritative options of any command.
Command Overview
| Group | Commands |
|---|---|
auth | pair, check, unpair, remove-certs, remove-ble-creds |
user | login, logout, verify |
device | list, status, profile, tts, wifi, hotspot, data-quality-stats |
recording | start, stop, list, info, delete, download, download-all, delete-all, sessions |
streaming | start, stop, webrtc, install-certs, uninstall-certs, sessions, profiles |
Global Options
These options apply to all device commands and must be given before the subcommand.
--serial <serial_number>
Connect to a specific device by ADB serial number. Mandatory when multiple devices are reachable; with a single device the CLI selects it automatically. The same rule applies over --ble, where the candidates are the devices paired over BLE on this host rather than the ones on USB.
aria_gen2 --serial IM0XXXXXXX device status
--device-ip <ipv4>
Connect to a device by IPv4 address instead of over USB.
aria_gen2 --device-ip 192.168.1.42 device status
--ble
Connect over BLE instead of USB/Wi-Fi. Uses the only device paired over BLE on this host; add --serial when more than one is paired. Recording and streaming are not available over BLE.
The CLI also falls back to BLE on its own when a device cannot be found over USB or Wi-Fi. See Automatic fallback to BLE.
--help text is wrong herearia_gen2 --help describes --ble as requiring --serial. It does not, when exactly one device is paired.
The --ble* flags are experimental. They work on macOS and have only been exercised on Fedora among Linux distributions; they are not supported on Ubuntu. See BLE Device Control.
aria_gen2 --ble --serial IM0XXXXXXX device status
--ble-scan / --ble-scan-timeout <seconds>
Scan for BLE-paired devices in device list to report which are in range. Off by default because the scan costs a few seconds; without it, devices are listed from this host's stored pairings without checking whether they are reachable.
--ble-scan-timeout (default 12) sets how long the scan runs. BLE discovery latency is irregular — a device that is present has been measured taking anywhere from 0.3 s to 11.6 s to appear — so shorter windows will report a present device as missing.
aria_gen2 --ble-scan --ble-scan-timeout 15 device list
-v / --version
Print the installed SDK version and exit.
aria_gen2 --version
# aria v2.5.0
Authentication Commands
Manage device authentication and pairing.
auth pair
Pair the SDK on this host with a device connected over USB. Requires approval in the Companion App.
Options:
--ble: Install BLE credentials over an existing authenticated SSL connection
aria_gen2 auth pair
# Add BLE credentials to an already-paired device
aria_gen2 auth pair --ble
auth check
Check if the SDK is authenticated with the device.
aria_gen2 auth check
auth unpair
Unpair the SDK from the device.
Options:
--ble: Remove locally stored BLE credentials for the selected device
aria_gen2 auth unpair
auth remove-certs
Remove locally stored SDK authentication certificates (does not require a connected device).
aria_gen2 auth remove-certs
auth remove-ble-creds
Remove all locally stored BLE credentials for every paired device (does not require a connected device).
aria_gen2 auth remove-ble-creds
User Account Commands
Log in to a Project Aria account. This group is served by the Project Aria Login library rather than the device CLI, so it does not need a connected device.
user login --username <username>
Log in to Project Aria.
Options:
--username(required): Username or email for authentication--verbose: Enable verbose debug logging (must precede the subcommand)
aria_gen2 user login --username user@example.com
user verify
Verify the stored authentication token.
aria_gen2 user verify
user logout
Log out from Project Aria and discard the stored token.
aria_gen2 user logout
Device Commands
Control and query device information.
device list
List all connected USB devices. Add the global --ble-scan flag to also report which BLE-paired devices are in range.
aria_gen2 device list
device status
Get current device status — battery, charging state, Wi-Fi, thermals, default recording profile, and device mode.
aria_gen2 device status
device data-quality-stats
Get per-sensor data quality statistics during an active recording or streaming session.
aria_gen2 device data-quality-stats
Device Profile Commands
device profile list
List available device profiles, including both pre-defined and custom profiles on the device.
aria_gen2 device profile list
device profile add <profile>
Add a single custom profile to the device. The operation is non-destructive — existing profiles are left in place. Once added, the custom profile can be used with recording start --profile or streaming start --profile.
Positional arguments:
profile(required): Path to a profile JSON file containing a single profile
# Add a custom profile to the device
aria_gen2 device profile add /path/to/custom_profile.json
# Verify the profile was added
aria_gen2 device profile list
For details on creating custom profile JSON files, see Custom Profile Example.
device profile remove <name>
Remove a single custom profile from the device by name.
Positional arguments:
name(required): Name of the profile to remove
aria_gen2 device profile remove my_custom_profile
device profile pull <name>
Pull a profile JSON from the device by name.
Positional arguments:
name(required): Name of the profile to pull
Options:
--output, -o <path>: Output file path for the profile JSON
aria_gen2 device profile pull my_custom_profile -o ./my_custom_profile.json