Description
Describe the request
Add first set of specific commands to edit the sketch.yaml
project file using the CLI.
arduino-cli profile init [-m <PROFILE_NAME>] [-b <FQBN>]
arduino-cli profile lib add [-m <PROFILE_NAME>] <LIB_NAME@VERSION>
arduino-cli profile lib remove [-m <PROFILE_NAME>] <LIB_NAME@VERSION>
arduino-cli profile set-default <PROFILE_NAME>
arduino-cli profile dump
Features:
arduino-cli profile init [-m <PROFILE_NAME>] [-b <FQBN>]
- creates a
sketch.yaml
file if it does not exist - optionally adds a new profile with the specified <PROFILE_NAME> and . It automatically adds the platform related to the FQBN if it is installed locally or can be retrieved using the Cloud Api, otherwise it returns a message to the user. If a profile with <PROFILE_NAME>, it notifies the user
- it checks the current directory by default
- creates a
arduino-cli profile lib add [-m <PROFILE_NAME>] <LIB_NAME@VERSION>
- if a default_profile is set, the operation is executed on that profile
arduino-cli profile lib remove [-m <PROFILE_NAME>] <LIB_NAME@VERSION>
- if a default_profile is set, the operation is executed on that profile
arduino-cli profile set-default <PROFILE_NAME>
- sets <PROFILE_NAME> as the default profile
arduino-cli profile dump
- prints the content of the sketch.yaml file
Describe the current behavior
All the operations on the sketch.yaml
project file must be done manually.
Arduino CLI version
nightly
Operating system
N/A
Operating system version
N/A
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