Loading repository data…
Loading repository data…
jamebal / repository
JmalCloud It's a private cloud storage project that makes it simple and secure to manage your files in the cloud. JmalCloud 是一款私有云存储网盘项目,能够简单安全管理您的云端文件
Rust 命令行上传工具位于 cli/jmal-cloud-cli,二进制名为 jmalcloud。
安装最新发布版:
curl -fsSL https://github.com/jamebal/jmal-cloud-server/releases/latest/download/install.sh | sh
无法访问 GitHub 的环境,可以把对应平台的 jmalcloud-<target>.tar.gz 和 install.sh
上传到已有 JmalCloud 网盘,然后在安装时指定压缩包完整地址:
curl -fsSL "https://your-jmalcloud.example.com/path/install.sh" \
| JMALCLOUD_CLI_ARCHIVE_URL="https://your-jmalcloud.example.com/path/jmalcloud-x86_64-unknown-linux-gnu.tar.gz" sh
安装脚本会在安装目录不在 PATH 中时自动写入当前 shell 配置文件。写入后执行提示中的
source 命令,或重新打开终端即可直接使用 jmalcloud。
本地构建:
cargo build --manifest-path cli/jmal-cloud-cli/Cargo.toml --release
使用用户名密码登录,2FA 用户会提示输入 TOTP:
jmalcloud login --server http://127.0.0.1:8088 --username admin
上传一个或多个文件、目录:
jmalcloud upload ./file.txt --server http://127.0.0.1:8088 --remote /
JMAL_CLOUD_SERVER=http://127.0.0.1:8088 jmalcloud upload ./a.txt ./b.txt --remote /
JMAL_CLOUD_SERVER=http://127.0.0.1:8088 jmalcloud upload ./dir --remote /
使用访问令牌上传:
jmalcloud upload ./file.txt --server http://127.0.0.1:8088 --remote / --access-token <token> --username admin
分享目录上传:
jmalcloud upload ./dir --server http://127.0.0.1:8088 --remote / --share-id <id> --share-token <token>
MIT license.
Copyright (c) 2023-present jmal