
| Filename | |
| Version | 0.1.0.4~bullseye |
| Age in days | 435 |
| Release date | 2025 08. 26. |
| Size | 1.63 KB |
| id | 3506 |
| Name | file2sharepoint |
| Package | |
| Appname | |
| Essential | |
| Vendor | |
| License | |
| Distribution | bullseye |
| Suite | main |
| Source | |
| Architecture | binary-amd64 |
| MultiArch | foreign |
| Maintainer | Vítězslav Dvořák |
| InstalledSize | 9 |
| Depends | composer-debian |
| PreDepends | |
| Breaks | |
| Enhances | |
| Section | unknown |
| Priority | optional |
| Description | Simple Sharepoint file uploader |
| LongDescription | Push your files to Sharepoint from command line |
| AutoBuiltPackage | |
| Filename | pool/main/f/file2sharepoint/file2sharepoint_0.1.0.4~bullseye_amd64.deb |
| MD5sum | bea468e7e2b646f7b34bfd262a9769d4 |
| SHA1 | 30c55d32d2efb2eb055ccabc379569c9bb881b2f |
| SHA256 | 7efc5c7c556db2a66f2906d938bdcc1726a4f3b76ee28d3805be8a9979fc5e47 |
| SHA512 | 1156c6732fd62218c9b468ece82ef7c3a3ed79b1078fee4b0b019fd9a1c18b9a12020c85d1c64aca62e07979860a585900baf5ea445ca72d2d2733fb7a285c71 |
| Size | 1664 |
| Auto-Built-Package | |
| Homepage | https://github.com/VitexSoftware/file2sharepoint |
| Provides | |
| Existing | |
| fileMtime | 2025-08-26 21:59:53 |
| created | 2024-11-28 12:52:56 |
| updated | 2025-08-26 19:59:53 |

Upload local files into sharepoint and print the resulting url to stdout
Please use the .deb packages. The repository is availble:
echo "deb http://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.com/keyring.gpg
sudo apt update
sudo apt install file2sharepoint
Run the interactive wizard to create an Azure App Registration and write a .env file:
bin/azure-setup-wizard # writes .env in the project root
bin/azure-setup-wizard /path/to/.env # writes to a custom path
make setup-wizard # shorthand via Makefile
The wizard will:
Sites.Selected application
permission, grant the app access to the target site, and generate a
client secret automatically..env file (mode 600).Required Azure permission for client-credentials mode
Resource: Microsoft Graph (00000003-0000-0000-c000-000000000000)
Application role:Sites.Selected
Admin consent must be granted by a Global Administrator, and the app must additionally be granted access to the specific site viaPOST /sites/{siteId}/permissions(the wizard does this automatically).Client-credentials auth authenticates via the modern Entra ID v2
client_credentialsflow, not the legacy SharePoint "App-Only via Azure ACS" flow (AllSites.Writeunder the classic SharePoint API resource00000003-0000-0ff1-ce00-000000000000) — Microsoft fully retired ACS for all tenants on 2026-04-02, with no extension possible (details). Confirmed empirically: ACS still issues a syntactically valid token, but SharePoint Online now rejects it on the real REST call regardless of credential correctness.
file2sharepoint <source/files/path/.> <Sharepoint/dest/folder/path/> [/path/to/config/.env]
Login based auth
OFFICE365_USERNAME=me@company.tld
OFFICE365_PASSWORD=xxxxxxxxxxxxxx
ClientID based auth
OFFICE365_CLIENTID=78842b49-651d-516e-0f2g-f979956aa620
OFFICE365_CLSECRET=8FR8Q~3Rab4-5o8dVd~1vDRId9oYiqEtMJB.Ucb2
Destination options
OFFICE365_TENANT=yourcompany
OFFICE365_SITE=YourSite
SHAREPOINT_LIBRARY='Shared documents/files'
Into configuration file .env please put ClientID OR Login/Password values.
This application uses the following exit codes:
0: Success1: General error