Documentation

Installation, commands, and configuration for the anytext CLI.

Installation

Requires Node.js 18 or later. Install globally via npm:

npm install -g anytext-cli

Or use npx to run without installing:

npx anytext-cli list

Agent skill

Add anytext as a skill to your coding agent (Claude Code, Cursor, etc.):

npx skills add ruiyuwg/anytext

Once added, your agent can call anytext commands directly from its tool loop.

Commands

anytext list

List all available libraries and their topic counts.

anytext list              # all libraries
anytext list react        # topics for a library

anytext read <library> <topic>

Read a specific topic. Outputs plain markdown to stdout.

anytext read react hooks
anytext read nextjs routing

anytext search <query>

Search across all docs. Returns ranked results with library, topic, and token count.

anytext search "server components"

anytext cache

Manage the local cache at ~/.anytext/. Manifest is cached for 24 hours; docs are cached until the manifest version changes.

anytext cache status      # show cache info
anytext cache clear       # clear all cached data

Update

Update to the latest version:

npm update -g anytext-cli

Check your current version with anytext --version.

Uninstall

Remove the CLI and clear cached data:

npm uninstall -g anytext-cli
rm -rf ~/.anytext