Level up your business security with free, on-demand training and certification. Explore 1Password Academy today →
Forum Discussion
suchademon
2 years agoNew Contributor
Is there currently a bug in the `--tags` argument for the current CLI 2.27.0 version?
Hello,
I found the following in the CLI version 2.27.0 while I upgraded my wrapper scripts to support the new CLI version:
bash
$ op item edit APP_xxxxxxxx.eu --tags=''
ID: nqehrsp...
suchademon
1 year agoNew Contributor
Hello HideousChowtime ,
loooool, yea tested the workaround and it yea, it does the job.
But still looks like a bug to my, as the parameter is still getting accepted and is mentioned in the help pages.
Thank you very much for that, finally I can get my automation for bidirectional syncing of pass and OP back online again \o/
Btw if other persons see this, to apply multible tags, just seperate them using colons:
bash
$ op item edit ${item_name} 'tags=tagNr1,tagNr2'
and if you want to use it with variables, it works like this (tested on 2024-07-30 with OP version 2.29.0):
bash
$ testtag="tagNr1,tagNr2"
$ op item edit ${item_name} 'tags='"${testtag}"
This will create the both mentioned tags in the variable testtag (also working if spaces are in the tag name as long as you keep of course the double quotas.
Still looking forward when that bug is fixed