Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cy2201 opened this issue Apr 17, 2020 · 5 comments
Open

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

cy2201 opened this issue Apr 17, 2020 · 5 comments

Comments

@cy2201
Copy link

cy2201 commented Apr 17, 2020

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
Copy link

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
Copy link

ghost commented Jan 28, 2021

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
Copy link

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
Copy link

cfitz25 commented Dec 4, 2022

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

@geosmart
Copy link

geosmart commented Jan 1, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants