NAME

leanpub - access the Leanpub web API

SYNOPSIS

leanpub [options] command [command options]

OPTIONS

-api_key=key

Provide the Leanpub API key to be used for all actions.

-help

Print a brief help message and exit.

-manual

Print the manual page and exit.

-really

State that you really intend to do the command (e.g. publish).

-slug=your_book

Provide the book's slug.

COMMANDS

individual_purchases

Retrieve data about individual purchases

job_status

Retrieve the status of the last job.

preview

Start a preview of your Book.

publish

Publish your book.

You have to use option -really with this command.

sales_data

Retrieve a summary of sales data.

DESCRIPTION

This program interacts with the Leanpub API. See https://leanpub.com/help/api for details about this API.

The slug is the part of the URL for your book coming after https://leanpub.com/. For instance if your book is found at https://leanpub.com/your_book, then the slug for your book is your_book.

AUTHOR

Mathias Weidner