Skip to main content
Aug 18, 2022 2:54 PM UTC
Question

Tags are not getting updated using CLI since late afternoon

Here is the JSON I'm using. The same JSON worked with tags at 2:50PM ET yesterday , and did not work after that. Are there any ongoing issues?

It adds all the fields except "tags" .

{
"title": "DB-test_user",
"tags": ["test", "mailto:email@example.com" , "test_user"],
"category": "DATABASE",
"fields": [
{
"id": "notesPlain",
"type": "STRING",
"purpose": "NOTES",
"label": "notesPlain",
"value": ""
},
{
"id": "database_type",
"type": "MENU",
"label": "type",
"value": "Other"
},
{
"id": "hostname",
"type": "STRING",
"label": "server",
"value": "tesdb.com"
},
{
"id": "port",
"type": "STRING",
"label": "port",
"value": "3306"
},
{
"id": "username",
"type": "STRING",
"label": "username",
"value": "testuser"
},
{
"id": "password",
"type": "CONCEALED",
"label": "password",
"value": "testpass"
},
{
"id": "sid",
"type": "STRING",
"label": "SID",
"value": ""
},
{
"id": "alias",
"type": "STRING",
"label": "alias",
"value": "NewDB"
},
{
"id": "options",
"type": "STRING",
"label": "connection options",
"value": ""
}
]
}

3 replies

Aug 20, 2022 11:00 AM UTC

Hey @Jayreprisk ,

Has there been any change in your local setup? Have you upgraded your version of the CLI or anything like that?
Can you please let us know what version of the CLI you run, as well as what OS you use?

Looking forward to hearing from you,
Horia

Aug 22, 2022 12:50 PM UTC

OP 2.5.1. Ubuntu 20 LTS. There were no changes in the local setup. Adding an item using CLI works. It's just the tags field is ignored if specified inside the JSON. I have a workaround by removing the tags field from JSON and adding it to CLI option '--tags tag1,tag2' .

1Password Employee
Sep 2, 2022 11:38 AM UTC

Hi @Jayreprisk , I have just tried out creating an item with your provided template and tags do appear on OP version=2.7.0. You might want to update your CLI. Let me know if this fixes it for you.

All the best,
Andi