CLI tool for Readwise Reader API
npm install readwise-reader-cli


A command-line interface for the Readwise Reader API.
Based on the official Readwise Reader API.
``bash`
npm install -g readwise-reader-cli
Or run directly with npx:
`bash`
npx readwise-reader-cli list
npx readwise-reader-cli save https://example.com
1. Get your Readwise access token from readwise.io/access_token
2. Set the token as an environment variable:
`bash`
export READWISE_TOKEN=your_token_here
Or create a .env file in your project:
``
READWISE_TOKEN=your_token_here
`bashList all documents
reader list
$3
`bash
Save a URL
reader save https://example.com/articleWith metadata
reader save https://example.com/article \
--title "My Article" \
--author "John Doe" \
--tags "tech,programming" \
--location laterOutput as JSON
reader save https://example.com/article --json
`$3
`bash
Update title
reader update --title "New Title"Update multiple fields
reader update \
--title "New Title" \
--author "Jane Doe" \
--location archiveUpdate tags
reader update --tags "new,tags"
`$3
`bash
reader delete
`$3
`bash
reader tags
reader tags --json
`$3
`bash
reader auth
`Options
$3
| Option | Description |
|--------|-------------|
|
--json | Output results as JSON |
| --help | Show help |
| --version | Show version |$3
-
new - Inbox
- later - Read Later
- archive - Archive
- feed - Feed$3
-
article
- email
- rss
- highlight
- note
- pdf
- epub
- tweet
- videoDevelopment
`bash
Clone the repository
git clone https://github.com/lis186/readwise-reader-cli.git
cd readwise-reader-cliInstall dependencies
npm installRun in development mode
npm run dev -- listRun tests
npm testBuild
npm run build
``MIT