Files
sysconfig/seafile_cli_install.sh
luk 9742f6dab2 refactor: 脚本及配置文件命名统一用 _ 分隔
将 .sh/.bat 脚本与 .js/.plist/.Dockerfile 等文件中以 - 分隔的文件名
改为 _ 分隔,dcloud-renew 目录改为 dcloud、script_nuance 目录改为
nuance,并同步更新脚本内部引用与 README 路径。

Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
2026-08-25 15:11:50 +08:00

26 lines
1.2 KiB
Bash
Executable File

sudo wget https://linux-clients.seafile.com/seafile.asc -O /usr/share/keyrings/seafile-keyring.asc
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/seafile-keyring.asc] https://linux-clients.seafile.com/seafile-deb/$(lsb_release -cs)/ stable main" | sudo tee /etc/apt/sources.list.d/seafile.list > /dev/null
sudo apt update
sudo apt install -y seafile-cli
echo "To initialze the client, create a settings folder at [settings path] or [leave blank] for default '~/seafile-client'"
read -p "***:: " SETTINGS_FOLDER
if [ ! $SETTINGS_FOLDER ]
then
SETTINGS_FOLDER = ~/seafile-client
mkdir $SETTINGS_FOLDER
seaf-cli init -d $SETTINGS_FOLDER
seaf-cli start
echo To sync a library, run commands like:
echo Download a new folder to sync with:
echo seaf-cli download -l "library_id" -s "server_url" [-d "parent_folder"] -u "user_name"
echo seaf-cli download-by-name -L "library_id" -s "server_url" [-d "target_folder_not_parent"] -u "user_name"
echo Sync with an existing folder:
echo seaf-cli sync -l "library_id" -s "server_url" [-d "parent_folder"] -u "user_name"
echo seaf-cli desync -d "existing lib folder"
echo Help:
echo seaf-cli -h
echo seaf-cli COMMAND -h
echo Check https://help.seafile.com/syncing_client/linux-cli/ for more details.