cli icon indicating copy to clipboard operation
cli copied to clipboard

Create vault from cli and add files to it.

Open cy2201 opened this issue 4 years ago • 5 comments

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.

cy2201 avatar Apr 17 '20 19:04 cy2201

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.

andreiled avatar Sep 08 '20 07:09 andreiled

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.

ghost avatar Jan 28 '21 02:01 ghost

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.

JackHewson avatar Jun 30 '22 09:06 JackHewson

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

cfitz25 avatar Dec 04 '22 06:12 cfitz25

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?

geosmart avatar Jan 01 '23 12:01 geosmart