Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajbosco/reads
Command line tool to interact with Goodreads
https://github.com/ajbosco/reads
cli command-line go golang goodreads goodreads-api
Last synced: 22 days ago
JSON representation
Command line tool to interact with Goodreads
- Host: GitHub
- URL: https://github.com/ajbosco/reads
- Owner: ajbosco
- License: mit
- Created: 2018-09-27T02:00:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T22:37:10.000Z (over 3 years ago)
- Last Synced: 2024-06-21T14:30:48.751Z (5 months ago)
- Topics: cli, command-line, go, golang, goodreads, goodreads-api
- Language: Go
- Size: 191 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# reads
[![Travis CI](https://img.shields.io/travis/ajbosco/reads.svg?style=flat-square)](https://travis-ci.org/ajbosco/reads)
[![Go Report Card](https://goreportcard.com/badge/github.com/ajbosco/reads?style=flat-square)](https://goreportcard.com/report/github.com/ajbosco/reads)
[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/ajbosco/reads/goodreads)Command line tool to interact with [Goodreads](https://www.goodreads.com).
![screenshot](/img/screenshot.png)
- [Installation](#installation)
+ [Binaries](#binaries)
+ [With Go](#with-go)
- [Authentication](#authentication)
- [Usage](#usage)
* [Search for Book](#search-for-book)
* [List Shelves](#list-shelves)
* [Show Books on Shelf](#show-books-on-shelf)
* [Add Book to Shelf](#add-book-to-shelf)## Installation
#### Binaries
For installation instructions from binaries please visit the [Releases Page](https://github.com/ajbosco/reads/releases).
#### With Go
```console
$ go get github.com/ajbosco/reads/cmd/reads
```## Authentication
1. Create a Developer Key with [Goodreads](https://www.goodreads.com/api/keys)
2. Create a `config.yml` file
```console
DeveloperKey: your-developer-key
DeveloperSecret: your-developer-secret
```
3. Set the config filepath as `GOODREADS_CLI_CONFIG` environment variable.
```console
export GOODREADS_CLI_CONFIG=path/to/your/config.yml
```
## Usage```console
$ reads -h
NAME:
reads - Command line tool to interact with GoodreadsUSAGE:
reads [global options] command [command options] [arguments...]COMMANDS:
search search for a book by title, author, or id
shelves view shelves and add books to them
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--config value, -c value Goodreads CLI config file [$GOODREADS_CLI_CONFIG]
--debug, -d enable debug logging
--help, -h show help
--version, -v print the version
```### Search for Book
```console
$ reads search -h
NAME:
reads search - search for a book by title, author, or idUSAGE:
reads search [arguments...]
```### List Shelves
```console
$ reads shelves list -h
NAME:
reads shelves list - list your shelvesUSAGE:
reads shelves list [arguments...]
```### Show Books on Shelf
```console
$ reads shelves show -h
NAME:
reads shelves show - show books on shelfUSAGE:
reads shelves show [command options] [arguments...]OPTIONS:
--shelf value, -s value -s=shelf-name
```### Add Book to Shelf
```console
$ reads shelves add -h
NAME:
reads shelves add - add a book to shelfUSAGE:
reads shelves add [command options] [arguments...]OPTIONS:
--shelf value, -s value -s=shelf-name
--book-id value, -b value -b=book-id
```