Readwise/CLI/Tutorial/Install and Log In
Properties
- see-also
- readwise-cli, Readwise/CLI, Readwise/Reader, rw-cli
Tutorial: Install and Log In to the Readwise CLI
What You'll Create
- A working install of the official readwise-cli
readwisecommand, authenticated to your account, ready to search and read your Readwise and Readwise/Reader library from the terminal.
- A working install of the official readwise-cli
Prerequisites
- A Readwise account (sign up at readwise.io if needed)
- Node.js and
npm(version 18 or later) - Basic familiarity with the terminal
Learning Goals
Steps
1. Install the CLI
- Open your terminal and install the package globally:
- Confirm the install by checking the version:
- You will see a version number printed.
- Notice that in this garden the CLI is already pinned in
mise.toml, so runningmise installfrom the repo root provides thereadwisecommand without a global npm install.
2. Log In with Your Browser (Recommended)
3. Log In with a Token (Headless / CI / Agents)
- Use this path instead when there is no browser — a server, a CI job, or an AI agent session.
- Open readwise.io/access_token and copy your access token.
- Authenticate with the token:
- Replace
YOUR_TOKEN_HEREwith the token you copied. - Notice that this token grants full access to your account — keep it secret, and prefer a per-user login over committing it anywhere.
4. Confirm You're Set Up
5. Run Your First Search
What You've Learned
- How to install the official
@readwise/cli - How to authenticate both interactively (
readwise login) and headlessly (readwise login-with-token) - How to confirm your setup and discover the command surface
- You can now search and read your library from the terminal — see readwise-cli for the full feature set, and
readwise skillsfor the AI-agent workflow skills vendored in this garden.
- How to install the official
Related