Skip to content

Support setting "user provided fields" non-interactively #2270

Closed
@BabaYaga1221

Description

@BabaYaga1221

Describe the request

I'm working on a project that involves uploading a file to an ESP32 using arduino-cli in an automated manner. However, I've encountered an issue where the upload process prompts for a password. During automation, an error message appears:
Error - user input is not supported in non-interactive mode.

To address this, I suggest implementing a new feature or command-line option, that allows setting "user provided fields" (such as the password in this example) as a command-line argument.

This way, the password can be passed along with other automation commands, eliminating the need for manual input during the upload process.

Describe the current behavior

In the terminal, you can upload the file using the following command:

$ arduino-cli upload {{file_path}} -b {{board}} -p {{IP_Address}}
Password : {{Password}}
Upload successful.

However, when attempting to automate this process using a Python script, the following error is encountered:

Error - user input is not supported in non-interactive mode

Arduino CLI version

0.33.1

Operating system

Windows

Operating system version

Windows 11

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

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftype: enhancementProposed improvement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions