Retrieving the 'Login' object 'notes' field in the 'op' CLI

Options
lexx
lexx
Community Member

Do you know how to retrieve the 'Login' object 'Notes' field in the 'op' CLI ?

./op list items

does not output the 'Notes' field that is present as a field when creating a 'Login' item via the 1Password GUI. (Note: I am specifically looking to retrieve the Notes section of the Login object (#001), and not the 'Secure Notes' object (#003).

The fields that the 'list items' command outputs appears to be:

uuid
templateUuid
trashed
createdAt
updatedAt
changerUuid
itemVersion
vaultUuid
overview
- URLs
ainfo
ps
title
url

Thank you


1Password Version: 0.4.1
Extension Version: Not Provided
OS Version: Linux
Sync Type: Not Provided
Referrer: forum-search:notes field login object

Comments

  • lexx
    lexx
    Community Member
    Options

    Found the answer:
    ./op get item

    includes the 'notesPlain' field in the output.

  • AGAlumB
    AGAlumB
    1Password Alumni
    edited July 2018
    Options

    Glad that did the trick! Indeed, op get item <UUID> will give you the full JSON for the item. You can also get inline help for virtually any command by appending --help at the command line, e.g. op get --help. But there's also the documentation, and we're here if you need us. Cheers! :)

This discussion has been closed.