This is a CLI for leanpub.com. It calls the LeanPub API to generate preview files and download them to the current directory.
brew install hjiang/tools/leanpub-cli-bin
Binaries for various platforms can be downloaded from the releases page
You can also use the following shell command to install the latest version for your platform.
curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git hjiang/leanpub-cli
cargo install leanpub-cli
The following arguments are supported:
--api_key
: LeanPub API key--slug
: LeanPub book slug--gen_type
or-t
:subset
orfull
Please feel free to submit issues or pull requests.