Feature request - Variables replacement in text inputs

Options
d8vjork
d8vjork
Community Member
edited April 2023 in CLI

Hi there, new here but user of 1password from years...

I had an idea now that 1password seems to integrate more and more stuff for developers, will love to see a text input on the desktop apps that allows you to add a compounded field that depends on other fields' values.

Let's say I've a base64 key for the application I'm developing and need to create a command that introduces this key:

mycommand decrypt --key=base64:keyhere --cipher=AES...

Will just want this to be something like this on a text input:

mycommand decrypt --key={{key}} --cipher={{cipher}}

So this handlebars will determine the variables replacing these by using the inputs names of the current 1password item (if present)


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided

Comments

  • Hi @d8vjork,

    From what I understand from your question, it looks to me like you're looking for op run, documented here: https://developer.1password.com/docs/cli/reference/commands/run/

    So your command would look something like: op run -- mycommand decrypt --key="op://<vault>/<item>[/<section>]/<field>" --cipher="op://<vault>/<item>[/<section>]/<other_field>"

    Is that about right? If not, can you provide some more details of what you are looking for?

    Thanks!
    Amanda

This discussion has been closed.