简单的 onedrive 上传工具

工具网址:https://github.com/0oVicero0/OneDrive

特性:
1.支持文件夹上传.
2.支持获取文件的匿名直链.
3.纯shell支持.


安装

1
wget --no-check-certificate -qO- "https://raw.githubusercontent.com/0oVicero0/OneDrive/master/OneDrive.sh" |bash

授权

1
onedrive -a

复制授权链接到浏览器打开,确认授权以后,浏览器进入空白页面,复制地址栏 code= 后面的字符串粘贴到 shell 窗口并按 Enter。

帮助

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
onedrive --help

#####################################################################
Usage: onedrive [OPTIONS] file1 [file2...]
onedrive-d folder

Options:
-d, --debug Enable debug mode
-a, --authorize Run authorization process
-f, --folder Upload files into this remote folder
-c, --creat Creat remote folder."
Directory names are separated with a slash, e.g.
rootFolder/subFolder
Do NOT use a trailing slash!
-h, --help Show this help
-r, --rename Rename the files during upload
For each file you specify you MUST also specify
the remote filename as the subsequent parameter
Be especially careful with globbing!
-s, --silent Silent mode for use in crontab scripts.
Return only exit code.
-ls,--list Show the itmes in this directory.
-l, --link Show the file share link.

#####################################################################
 上一篇

vps 阿里云 香港