Skip to content

Instantly share code, notes, and snippets.

@JJonCode
JJonCode / alist-upload.md
Created September 19, 2025 09:16 — forked from Cyang39/alist-upload.md
curl 上传 alist 的 bash 脚本

参考这个分享的curl上传方法编写的脚本,目的是简化 token 获取到上传文件的流程。

个人用在定时文件备份中。

#!/bin/bash

# 检查参数数量
if [ $# -ne 6 ]; then
    echo "Usage: $0 --username <username> --password <password> <local-file> <alist-url>"