cryptomator / cli

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

ERROR [CryptomatorCli:36] No vault specified. #6

Open beanstalkblue opened 7 years ago

beanstalkblue commented 7 years ago

My masterkey.cryptomator file is located at /home/me/vaults/cryptomator/masterkey.cryptomator

I run the cli jar like so:

java -jar cryptomator-cli-0.2.1.jar --bind 0.0.0.0 --port 8080 --vault cryptomator=/home/me/vaults/cryptomator/ --password=abc

I copied the path and mountName from ~/.Cryptomator/settings.json

This produces the error:

ERROR [CryptomatorCli:36] No vault specified.

Am I doing something wrong or is this a bug?

markuskreusch commented 7 years ago

The syntax for the password parameter is equal to the syntax for the vault. So:

java -jar cryptomator-cli-0.2.1.jar --bind 0.0.0.0 --port 8080 --vault cryptomator=/home/me/vaults/cryptomator/ --password cryptomator=abc