Overwrite a document via the CLI?

Via the CLI, there any way to overwrite a previously created document with an updated version of that document?

I know I could delete the document and then re-create it, but then, the original document ends up in the Trash folder, and if I reference the document after that via the CLI, I have to use its UUID and not its name, since both the original and the new document are shown as existing. This adds a lot of complexity to what, in my opinion, should be nothing more than a simple overwrite operation.

If I could empty the Trash via the CLI, I could then do the following:

(1) delete the original document via the CLI
(2) re-create the updated document by name via the CLI
(3) empty the Trash via the CLI

But step (3) seems to be impossible (see my other recent message here about this topic).

Any ideas of how I could overwrite a document via the CLI without this level of complexity?

Thank you.

1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided


  • rickfillionrickfillion Junior Member

    Team Member

    Hi @HippoMan,

    It’d be great if this was possible, but currently there’s no way to do it due to the fact that you can’t edit an existing item. We aren’t happy with how item management works in the CLI and we want to rethink it.


  • Yes, replacing an existing item via the CLI would indeed be a useful and helpful feature.

  • brentybrenty

    Team Member

    Thanks for letting us know! :)

  • Just adding another voice in support of updating/replacing items and documents. I've got things working well enough with a delete-old/create-new workflow, but I'd much rather not be filling up the trash.

  • rickfillionrickfillion Junior Member

    Team Member

    Naturally. It's most definitely something we want to make possible.


Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file