Provide an --offline
directive to prevent errors in portable mode
#1963
Labels
status: waiting for information
More information must be provided before work can proceed
topic: code
Related to content of the project itself
type: enhancement
Proposed improvement
Milestone
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 thereDescribe 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
filearduino-cli.yaml
Arduino CLI version
test-1845-3fd2864ff8d77d476d1e73500f8a0c54d03354b3-git-snapshot
Operating system
macOS
Operating system version
12.6
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: