https://github.com/langered/gonedrive
OneDrive CLI written in Go
https://github.com/langered/gonedrive
cli cobra golang onedrive secrets viper
Last synced: 6 months ago
JSON representation
OneDrive CLI written in Go
- Host: GitHub
- URL: https://github.com/langered/gonedrive
- Owner: langered
- License: apache-2.0
- Created: 2019-11-06T07:35:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T19:57:36.000Z (over 2 years ago)
- Last Synced: 2025-03-28T23:43:46.643Z (6 months ago)
- Topics: cli, cobra, golang, onedrive, secrets, viper
- Language: Go
- Homepage:
- Size: 250 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/langered/gonedrive)
[](https://coveralls.io/github/langered/gonedrive?branch=master)
[](https://github.com/langered/gonedrive/actions)
[](https://github.com/langered/gonedrive/blob/master/LICENSE)# Gonedrive
A CLI to use OneDrive in the terminal.# Installation
You can use the binary in the release or build a new binary from source.
## From source
Build Gonedrive from the source files:```
git clone https://github.com/langered/gonedrive.git
cd gonedrive
make build
```# Usage
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.## Documentation
Each command is documented in the [doc folder](https://github.com/langered/gonedrive/tree/master/doc)## Using Docker
This Repository also contains docker-images which you can find [here](https://github.com/langered/gonedrive/packages).
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]`