Description
Describe the request
I have been testing a setup for portable mode of Arduino CLI.
I am happy to know that (at least on Mac OS) it works beautifully, but when I have an unrecognised device attached to the USB port, it tries to resolve the fqbn
using the Arduino online builder.
This generates an error which is unpleasant.
I am not sure what other calls to services are made besides updating index for libraries and platforms, but in theory a user might decide to manually copy the platforms and related index files into a portable directory and run arduino-cli
from there
Describe the current behavior
with the following file structure, arduino-cli
can be run locally and off removable storage.
The requirements are that any platform and its supporting package index can be found by the CLI.
A local arduino-cli.yaml
is required and must be properly customised (follows)
I have manually copied what was needed from my Arduino15
folder and defined user and data paths for the configuration .yaml
file
arduino-cli.yaml
board_manager:
additional_urls:
- https://dl.espressif.com/dl/package_esp32_index.json
daemon:
port: "50051"
directories:
data: ./Arduino15
downloads: ./Arduino15/staging
user: ./Arduino
library:
enable_unsafe_install: false
logging:
file: ""
format: text
level: info
metrics:
addr: :9090
enabled: true
output:
no_color: false
sketch:
always_export_binaries: true
updater:
enable_notification: true
Arduino CLI version
test-1845-3fd2864ff8d77d476d1e73500f8a0c54d03354b3-git-snapshot
Operating system
macOS
Operating system version
12.6
Additional context
No response
Issue checklist
- I searched for previous requests in the issue tracker
- I verified the feature was still missing when using the nightly build
- My request contains all necessary details