sharepoint-file

2.0.0 • Public • Published

sharepoint-file

NPM

A command-line utility for Sharepoint file operations

ℹ️ Currently supports only download of individual files from an online Sharepoint site / file storage.

Installation or update

$ npm install -g sharepoint-file

Usage

$ 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

License

The MIT License (MIT)

Copyright (c) 2016 Timegrip

Package Sidebar

Install

npm i sharepoint-file

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • zarko