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

sandeepmachiraju
sandeepmachiraju
Community Member

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

  • 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

  • sandeepmachiraju
    sandeepmachiraju
    Community Member

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

  • cohix
    cohix
    1Password Alumni

    @sandeepmachiraju that's great to hear!

This discussion has been closed.