A command-line utility for Sharepoint file operations
ℹ️ Currently supports only download of individual files from an online Sharepoint site / file storage.
$ npm install -g sharepoint-file
$ spfile task args
Available tasks: (use --help for more info)
fetch [options] <FILEURL> [filepath] ... Fetches a file and shows its content or saves it
<FILEURL> The full Sharepoint URL to the file
[filepath] File name or file path to save to
[-u] ............................. User credentials as emailaddress:password
Example: spfile fetch https://your.sharepoint.com/path/foo.json
Example: spfile fetch https://your.sharepoint.com/path/bar.pdf bar.pdf
login [options] <HOSTURL> .............. Authenticates with Sharepoint explicitly
<HOSTURL> The Sharepoint host URL
[-u] ............................. User credentials as emailaddress:password
Example: spfile login https://your.sharepoint.com
logout ................................. Invalidates your Sharepoint session explicitly
Options:
--silent ............................... Suppresses most console output
The MIT License (MIT)
Copyright (c) 2016 Timegrip