Forum Discussion

npjonath's avatar
npjonath
New Contributor
1 month ago

CLI created text fields lose multiline support in UI edit mode

Hi,

I’ve run into an inconsistency between the 1Password UI and the CLI regarding multiline text fields.

When I create a Text field directly from the UI, it fully supports multiline values and retains them correctly when viewing, editing, and re-saving the item.

However, when I create a similar field via the CLI, the behavior is different:

The multiline value is displayed correctly in the UI (line breaks are visible).

But as soon as I edit the item in the UI, the multiline formatting is lost, because the field is treated as a single-line field.

After that, retrieving the value from the CLI is no longer formatted.

This makes CLI-created items effectively read-only for multiline content, which is problematic for some internal CI use cases we rely on.

I’m aware that using notesPlain is a possible workaround, but it does not fit our requirements. Since the UI clearly supports true multiline “Text” fields, it’s confusing and frustrating that the CLI cannot create the same type of field.

Here’s a minimal reproduction:

echo '{"title": "test", "category":"SECURE_NOTE","fields":[{"label":"test","value":"test\\ntest"}]}' | op item create --vault="MyVault" -

Is this a known limitation of the CLI schema, or a bug?

Would it be possible for someone on the development team to look into exposing proper multiline text field support in the CLI?

Thanks in advance for your help.
No RepliesBe the first to reply