cryptomator / cli

Cryptomator Command-Line Interface
GNU Affero General Public License v3.0
278 stars 40 forks source link

Create vault from cli and add files to it. #31

Open cy2201 opened 4 years ago

cy2201 commented 4 years ago

Hello,

my most desired feature is to create vaults from cli and add files into it. That would be the most useable feauture for me and I'm sure for a lot of people, too.

Nochmal auf Deutsch: Das geilste Feature wäre es, über die Kommandozeile Tresore zu kreieren und auch Dateien hinzuzufügen, damit ich einiges automatisieren könnte. Sicherlich würden dieses Feature auch viele andere feiern.

Regards und so.

andreiled commented 3 years ago

It would also be useful if CLI could be used to mount unlocked vault using FUSE/Dokany. For example, I am looking for a file encryption solution that I could run on a headless server.

ghost commented 3 years ago

This seems to already work?

I can run java -jar cli.jar --vault newVault=/some/new/folder --fusemount newVault=/mnt/xxx and it will happily create a new vault for me.

JackHewson commented 2 years ago

my most desired feature is to create vaults from cli and add files into it. That would be the most useable feauture for me and I'm sure for a lot of people, too.

Tested with https://github.com/cryptomator/cli/releases/tag/0.5.1 I want to confirm, that it's not possible to create a new vault:

java -jar cryptomator-cli-0.5.1.jar --vault newVault=C:/temp/test --bind 127.0.0.1 --port 8080

This results in:

Exception in thread "main" java.nio.file.NoSuchFileException: C:\temp\test\vault.cryptomator
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)

There must be an existing vault in the given directory.

cfitz25 commented 1 year ago

Any updates on this? This is the only thing stopping me from using cryptomator right now

geosmart commented 1 year ago

my most desired feature is to create vaults from cli and add files into it. That would be the most useable feauture for me and I'm sure for a lot of people, too.

Tested with 0.5.1 (release) I want to confirm, that it's not possible to create a new vault:

java -jar cryptomator-cli-0.5.1.jar --vault newVault=C:/temp/test --bind 127.0.0.1 --port 8080

This results in:

Exception in thread "main" java.nio.file.NoSuchFileException: C:\temp\test\vault.cryptomator
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)

There must be an existing vault in the given directory.

+1

if I use a vault created by the UI, it's also work by cli.

but how to totaly init a new vault by cli?