Usage#
Command-line interface for Amazon’s Send-to-Kindle service
usage: stkclient [-h] {login,devices,send,logout} ...
Sub-commands:#
login#
Create a client by authenticating with OAuth2.
stkclient login [-h] [--client CLIENT] [-f]
options#
- --client
path to write the client details
Default: “$XDG_DATA_HOME/pystkclient/client.json”
- -f, --force
overwrite the existing client, if there is one
Default: False
devices#
List available kindle reader devices.
stkclient devices [-h] [--client CLIENT]
options#
- --client
path to the client details
Default: “$XDG_DATA_HOME/pystkclient/client.json”
send#
Send a file to one or more devices.
stkclient send [-h] [--client CLIENT] --title TITLE --author AUTHOR --format
FORMAT
file target [target ...]
Positional Arguments#
- file
file to send
- target
device serial numbers to send the file to, or “all” to send to all devices
options#
- --client
path to the client details
Default: “$XDG_DATA_HOME/pystkclient/client.json”
- --title
title of the work (required)
- --author
author of the work (required)
- --format
file format, for example “mobi” (required)
logout#
Deauthorize and delete a client.
stkclient logout [-h] [--client CLIENT]
options#
- --client
path to the client details - will be deleted
Default: “$XDG_DATA_HOME/pystkclient/client.json”