In op create document command, Is it possible to provide file path where my document resides

I am trying to execute the following command:
Syntax: op create document [--title=] [--vault=] [--tags=]
Command: op create document myfile.tar --title="My File" [Working if I execute from the same location where my file resides]
op create document /home/ubuntu/test/myfile.tar --title="My File" [Not working]

Could you please help me..


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

Comments

  • rickfillionrickfillion Junior Member

    Team Member

    It should work.

    $ op create document ~/Desktop/Screen\ Shot\ 2015-12-02\ at\ 9.35.33\ PM.png  --title="testuploadpath"
    {"uuid":"na2kfbcdkpkwcm4ajwxdpszoea","createdAt":"0001-01-01T00:00:00Z","updatedAt":"0001-01-01T00:00:00Z","vaultUuid":"hiuyj4klsn5kfg7lpmyllhztze","overview":null}
    

    What error are you getting?

    Rick

  • Hey sorry for the delay in response. It's working.

  • cohixcohix

    Team Member

    @sandeepmachiraju that's great to hear!

Leave a Comment

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