Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
sal65535
7 months agoNew Contributor
Can't delete tags from CLI
1Password CLI version 2.30.3
1Password client version 8.10.60 for Linux (PRODUCTION channel)
When trying to overwrite items tag from the op command, the below unexpected behavior happens.
# Getting the edit subcommand help
op item edit --help...
-h, --help help for edit
--reveal Don't conceal sensitive fields.
--tags tags Set the tags to the specified (comma-separated) values. An empty value will remove all tags.
--template string Specify the filepath to read an item template from.
...# Tags are not removed
op item edit 'Test Tag CLI' '--tags='# Tags are not removed
op item edit 'Test Tag CLI' --tags='empty'# Tags are not removed
op item edit 'Test Tag CLI' --tags ""# Tags are not removed
op item edit 'Test Tag CLI' --tags null# Tags are not removed
op item edit 'Test Tag CLI' --tags=null
How can I perform the tags deletion from 1Password CLI?
Hello sal65535! 👋
I'm sorry that you're unable to remove tags from an item using the 1Password CLI. This is a known issue that our developers are aware of and are tracking. For the time being, the following command will work to remove tags from an item:
op item edit "itemname" tags=
I've filed an issue to have our docs team look into updating our support documentation. I'm sorry for the disruption to your work.
-Dave#3866
1 Reply
- 1P_Dave
Moderator
Hello sal65535! 👋
I'm sorry that you're unable to remove tags from an item using the 1Password CLI. This is a known issue that our developers are aware of and are tracking. For the time being, the following command will work to remove tags from an item:
op item edit "itemname" tags=
I've filed an issue to have our docs team look into updating our support documentation. I'm sorry for the disruption to your work.
-Dave#3866