op item edit - generate a password for a field in a secution

Options
norgie
norgie
Community Member
edited February 4 in CLI

Good day,

For my current use case, I am looking for the capability to generate a new password for a field in a specific section.

So, for setting a custom static value for a custom field in a custom section, I am using the following sample command:

op item edit "My Example Item" "my_custom_section.my_custom_text_field1[text]=my_custom_value"

I am using this approach for different field types.

In the case of the field type password, I would like to be able to use something like this:

op item edit "My Example Item" "my_custom_section.my_custom_password_field1[generate-password]=letters,digits,symbols,32"

I checked the documentation as best as possible but couldn't find anything in this direction.

My questions are:
1. Is there already a capability for op item edit available to generate a password for a field in a section (not on the root level of an item)?
2. How can I proceed if such a parameter does not exist (e.g., feature request?)?

Thanks a lot for your help.

Best
Norman


1Password Version: 8.10.24
Extension Version: 2.24.0
OS Version: Mac 14.3
Browser: Not Provided