Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.18 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.18 KB

sp-upload GitHub issues PRs Welcome Dependencies

Upload files to a sharepoint folder using the terminal

Installation

npm install -g saissaken/sp-upload

Usage

sp-upload -u [email protected] 
          -p 123456 
          -s https://mycorp.sharepoint.com/sites/yoursite 
          -d path/to/your/folder 
          -f example.js

Result

The local file example.js will be uploaded to https://mycorp.sharepoint.com/sites/yoursite/path/to/your/folder/example.js

It must be a valid path.

WARNING

You are writing your credentials in the terminal, and they probably will be stored in some logs as plain text.

Bash will store every executed command in ~/.bash_history and also the history that is kept in memory. You should clear that.

Right now, this is the only way to input your credentials, so deal with it or don't use it.