Seafile CLI

init

Initialize config file

usage: seaf-cli -c -o init

start

Start seafile-applet to run a seafile client

usage: seaf-cli -c -o start

start-ccnet

Start ccnet daemon

usage: seaf-cli -c -o start-ccnet

start-seafile

Start seafile daemon

usage: seaf-cli -c [-w ] -o start-seafile

clone

Clone a repo from seafile server

A repo id and a url need to be give because this program need to use seafile web
API v2 to fetch repo information.

usage: seaf-cli -c -r -u [-w ] -o clone

sync

Try to synchronize a repo

usage: seaf-cli -c -r -o clone

remove

Try to desynchronize a repo

usage: seaf-cli -c -r -o remove

Usage

Subcommands:

  1. init: create config files for seafile client
  2. start: start and run seafile client as daemon
  3. stop: stop seafile client
  4. list: list local liraries
  5. status: show syncing status
  6. download: download a library from seafile server
  7. sync: synchronize an existing folder with a library in
  8. seafile server
  9. desync: desynchronize a library with seafile server

More details

Seafile client stores all its configure information in a config dir. The default location is ~/.ccnet. All the commands below accept an option -c <config-dir>.

init

Initialize seafile client. This command initializes the config dir. It also creates sub-directories seafile-data and seafile under parent-dir. seafile-data is used to store internal data, while seafile is used as the default location put downloaded libraries.

  1. seaf-cli init [-c <config-dir>] -d <parent-dir>

start

Start seafile client. This command start ccnet and seaf-daemon, ccnet is the network part of seafile client, seaf-daemon manages the files.

  1. seaf-cli start [-c <config-dir>]

stop

Stop seafile client.

  1. seaf-cli stop [-c <config-dir>]

Download

Download a library from seafile server

  1. seaf-cli download -l <library-id> -s <seahub-server-url> -d <parent-directory> -u <username> [-p <password>]

sync

Synchronize a library with an existing folder.

  1. seaf-cli sync -l <library-id> -s <seahub-server-url> -d <existing-folder> -u <username> [-p <password>]

desync

Desynchronize a library from seafile server

  1. seaf-cli desync -d <existing-folder>