[Linux] OneDrive for Business
Branch: master
Clone or download
Latest commit 7ac8c29 Nov 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Business Update onedrive-d Nov 19, 2018
OneDrive.sh Update OneDrive.sh Nov 19, 2018
README.md Update README.md Sep 24, 2018

README.md

[OneDrive for Business on Bash]


详细说明:
https://moeclub.org/2017/07/07/304/


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


UPDATE: 默认添加应用密钥; 开箱即用.

Install

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

Authorize

onedrive -a

Help

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.
      
#####################################################################