⪼ Made with 💜 by Polyglot.
- Income Sources :: Writing :: Books :: ISBN
- God's Gift To You
- Draft2Digital
- lulu
- yougotowhere
- The WORST LIES About Self-Publishing Books on Amazon KDP - It's Not As Bad As You Think!
Book Publishing Automation
» echo -e 'PUBLISHER="Shower Thought Publishing"\nTITLE="Why You _Should_ Write Your Book ... in Markdown!"\nISBN=""\nPERSPECTIVE=EXPERT|SELF\nAUDIOBOOK=true\nEBOOK=true\SELF_PUBLISH=true\nDRAFT=true' > .env
» direnv allow
» book init \
--title "$TITLE" \
--publisher "$PUBLISHER" \
--isbn $ISBN \
--draft $DRAFT
» book publish
The book
command-line tool allows users to initialize and publish books easily. This documentation will guide you through its usage, options, and subcommands.
book [global-options] <subcommand> [subcommand-options]
--help
- Display the help message.--version
- Show the version number of thebook
tool.
Initialize a new book in the current directory.
» book init [book-name]
book-name
- Optional. The name of your book. If not provided, you'll be prompted for it.
Initialize a new book with the name "Why You Should Write Your Book ... in Markdown!"
» book init --title "Why You _Should_ Write Your Book ... in Markdown!" --publisher[-imprint]=$PUBLISHER_NAME
Publish the current book to a specific publisher.
» book publish --publisher=$PUBLISHER_NAME
--publisher, --publisher-imprint
- The name of the publisher to which you want to publish the book. This option is required for thepublish
subcommand.
Publish the current book to "Shower Thought Publishing":
» book publish --publisher="Shower Thought Publishing"
Before diving into the TypeScript example, ensure you've set up the necessary typings for the book
SDK.
Declaration file (book.d.ts
):
declare module "book-sdk" {
interface InitOptions {
bookName?: string;
}
interface PublishOptions {
publisher: string;
}
function init(options?: InitOptions): Promise<void>;
function publish(options: PublishOptions): Promise<void>;
}
Usage:
import { init, publish } from "book-sdk";
// Initialize a new book
init({ title: "Why You _Should_ Write Your Book ... in Markdown!" });
// Publish the book to a specific publisher
publish({ publisher: "Shower Thought Publishing" });
Ensure you've installed the book-sdk
for Python.
Usage:
from book_sdk import init, publish
# Initialize a new book
init(title="Why You _Should_ Write Your Book ... in Markdown!")
# Publish the book to a specific publisher
publish(publisher="Shower Thought Publishing")