You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77672426b5 | 4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago | |
go.mod | 4 years ago | |
go.sum | 4 years ago | |
main.go | 4 years ago |
README.md
Sharepoint File Uploader
Upload a file to sharepoint
Compile from source
Install Golang and run go build
. You can use the generated binary sharepoint-upload
.
Installation
Binary (Linux)
Copy the binary sharepoint-upload
and execute it.
Usage
Set SP_PASSWORD
environment variable.
sharepoint-upload -f filename
Use -h
to see more available options (like setting the directory).
$ ./sharepoint-upload -h
Usage of ./sharepoint-upload:
-d string
The directory on Sharepoint (default "Reports")
-f string
The file to upload
-overwrite
Specify if existing files should be overwritten
-s string
The Sharepoint site url (default "https://michuit.sharepoint.com/sites/csi")
-u string
The user for Sharepoint (default "michael")