Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
BabaYaga1221 opened this issue Aug 18, 2023 · 0 comments · Fixed by #2348
Closed
3 tasks done

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

BabaYaga1221 opened this issue Aug 18, 2023 · 0 comments · Fixed by #2348
Assignees
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@BabaYaga1221
Copy link

BabaYaga1221 commented Aug 18, 2023

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
@BabaYaga1221 BabaYaga1221 added the type: enhancement Proposed improvement label Aug 18, 2023
@per1234 per1234 changed the title OTA upload using non-interactive environment Support setting "user provided fields" non-interactively Aug 19, 2023
@per1234 per1234 added the topic: code Related to content of the project itself label Aug 19, 2023
@umbynos umbynos added this to the Arduino CLI v0.35.0 milestone Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants