Skip to main content
August 31, 2022
Question

cli2 updating title

  • August 31, 2022
  • 3 replies
  • 63 views

Hi
I am trying to get the Title of any item I am using powershell which works well for New items so its not a permissioning thing . Script goes like this after I have successfully logged in using
invoke-Expression to sign in.

$tkn = id the UUID of item
$emi = Title
Title

op item get $tkn --fields $eml

also tried

op item get $tkn Title

3 replies

1Password Employee
September 2, 2022

Hi @Corval. You could always try using op read <secret_reference> for getting specific fields inside an item. In your case, the secret reference for the title would be op://<the_vault_of_the_item>/<the_UUID_of_item>/title. Then op read op://<the_vault_of_the_item>/$tkn/$emi should do the trick.

Hope I could help,
Andi

September 2, 2022

Thanks worked a treat .

1Password Employee
September 6, 2022

Great! Glad I could help!