Seafile CLI Passwords in scripts

Hello there,

I have some automation I would like to do with the seafile cli client. Is there any way to pass in a library password? THE login password is no problem, but I have not found a way to deal with this. I have numerous libraries, and some are encrypted.

Thank you very much for your time.

1 Like

are you looking for the ā€œ-eā€ parameter???

root@server:~# seaf-cli sync --help
usage: seaf-cli sync [-h] [-c CONFDIR] [-C C] [-l LIBRARY] [-s SERVER] [-u USERNAME] [-p PASSWORD] [-a TFA] [-d FOLDER] [-e LIBPASSWD]

optional arguments:
  -h, --help            show this help message and exit
  -c CONFDIR, --confdir CONFDIR
                        the config directory
  -C C                  the user config directory
  -l LIBRARY, --library LIBRARY
                        library id
  -s SERVER, --server SERVER
                        URL for seafile server
  -u USERNAME, --username USERNAME
                        username
  -p PASSWORD, --password PASSWORD
                        password
  -a TFA, --tfa TFA     two-factor authentication
  -d FOLDER, --folder FOLDER
                        the existing local folder
  -e LIBPASSWD, --libpasswd LIBPASSWD
                        library password

What the heck is wrong with me??? How did I miss that???

Thank you so so much.

Ah, ok, I never realised there were help commands on the sub commands. My bad.