trinhdrew1418 / gphotos-cli

A command line application for interfacing with google photos written in Go
Apache License 2.0
27 stars 2 forks source link
command-line-tool golang google-api google-photos gphotos-cli photos

gphotos-cli: A command line interface for Google Photos

A command line interface app for Google photos for doing bulk tasks such as mass filtered downloads and mass uploads.

Features

Installation

With Go already installed and setup, just call:

go get -u github.com/trinhdrew1418/gphotos-cli

Before usage, you first need to grant the application account authorization:

gphotos-cli init

Commands

init

This initializes the authorization token needed to access your account

gphotos-cli init

options

push

Command to upload files to your google photos library.

gphotos-cli push [-OPTIONS] [FILE 1] [FOLDER 1] ...

options

pull

Command to download files

gphotos-cli pull [-OPTIONS]

Follow the prompts to select your filters. It will download your files into folders separated by year and month. Each file will be named with its day of creation and time.

You can filter up to 10 of the following categories:

options

albums

Create albums by calling

gphotos-cli albums create [TITLE OF ALBUM]

More subcommands coming later.

Caveats

Credits

Some of these packages were a huge help; either directly, as reference code, or as inspiration.

TODOs