go-projects/sharepoint-file-uploader
2020-06-17 14:49:27 +02:00
..
go.mod Adding sharepoint-uploader 2020-06-17 14:47:24 +02:00
go.sum Adding sharepoint-uploader 2020-06-17 14:47:24 +02:00
main.go Adding sharepoint-uploader 2020-06-17 14:47:24 +02:00
README.md Update readme file 2020-06-17 14:49:27 +02:00

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")