A CLI to use OneDrive in the terminal.
You can use the binary in the release or build a new binary from source.
Build Gonedrive from the source files:
git clone https://github.com/langered/gonedrive.git
cd gonedrive
make build
At first you have to authenticate yourself to microsoft in order to get access to the data you stored in your OneDrive Account. Run:
gonedrive login
This will redirect you to the login page of Microsoft. After a successful login, Gonedrive receives the token and stores it in your config file.
The default location for the config file is in your homedirectory ~/.gonedrive.yml
The received token is valid for 1 hour.
Each command is documented in the doc folder
This Repository also contains docker-images which you can find here.
To get the latest image, which is built from master, run:
docker pull docker.pkg.github.com/langered/gonedrive/gonedrive:latest
When using the Dockerfile, you have to mount the local config-file to the docker image.
Example:
docker run -v $HOME/.gonedrive.yml:/.gonedrive.yml gonedrive [command]