READABILITY-CLI(1)
π READABILITY-CLI(1) β General Commands Manual energy π
okay so this is the manual page for readability-cli, bestie. General Commands Manual, main-character energy, the whole thing. No cap. π«Ά
β¨ NAME β¨
readability-cli β get useful text from a web page π
πΈ SYNOPSYS πΈ
yes, it's spelled SYNOPSYS here β we're keeping the original spelling, don't come for me
readable [SOURCE] [options]...
π¦ DESCRIPTION π¦
okay so readability-cli takes any HTML page and strips out unnecessary bloat, leaving only the core text content. The resulting HTML may be suitable for terminal browsers, text readers, and other uses. literally the glow-up. β¨
This package provides the readable command, which uses Mozilla's Readability library. The same library is used in Firefox's Reader View. iykyk. π₯
The SOURCE can be a URL, a file, or '-' for standard input.
π OPTIONS π
--helpβ Show help message, and exit. cute and efficient.-b,--baseURL β Specify the document's URL. This affects relative links: they will not work ifreadability-clidoes not know the base URL. You only need this option if you read HTML from a local file, or from standard input.-S,--insaneβ Don't sanitize HTML. we're going feral, no filter.-K,--insecureβ (Node.js version only) Allow invalid SSL certificates.-j,--jsonβ Output all known properties of the document as JSON (see Properties subsection). JSON girlies rise. π-l,--low-confidenceMODE β What to do if Readability is uncertain about what the core content actually is. The possible modes are:keepβ When unsure, don't touch the HTML, output as-is.forceβ Process the document even when unsure (may produce really bad output).exitβ When unsure, exit with an error.
The default value is keep. If the --properties or --json options are set, the program will always run in exit mode.
-C,--keep-classesβ Preserve CSS classes for input elements. By default, CSS classes are stripped, and the input is adapted for Firefox's Reader View.-o,--outputFILE β Output the result to FILE.-p,--propertiesPROPERTIES... β Output specific properties of the document (see Properties subsection).-x,--proxyURL β (Node.js version only) Use specified proxy. Node.js and Deno can also useHTTPS_PROXYenvironment variable.-q,--quietβ Don't print extra information.-s,--styleβ Specify.cssfile for stylesheet.-A,--user-agentSTRING β Set custom user agent string.-V,--versionβ Printreadability-cliand Node.js/Deno version, then exit.--completionβ Print script for shell completion, and exit. Provides Zsh completion if the current shell is zsh, otherwise provides Bash completion. Currently broken when using Deno.
π Properties π
The --properties option accepts a list of values, separated by spaces. Suitable values are:
titleβ The title of the article.html-titleβ The title of the article, wrapped in an<h1>tag.excerptβ Article description, or short excerpt from the content.bylineβ Data about the page's author.lengthβ Length of the article in characters.dirβ Text direction, is either"ltr"for left-to-right or"rtl"for right-to-left.text-contentβ Output the article's main content as plain text.html-contentβ Output the article's main content as an HTML body.
Properties are printed line by line, in the order specified by the user. Only "text-content" and "html-content" is printed as multiple lines.
π₯ EXIT STATUS π₯
As usual, exit code 0 indicates success, and anything other than 0 is an error. readability-cli uses standard* error codes:
64β Bad CLI arguments65β Data format error: can't parse document using Readability.66β No such file68β Host not found69β URL inaccessible77β Permission denied: can't read file
* By "standard error codes" I mean "close to a standard". And by that I mean: I don't remember any command line tools which actually use this convention. You may find more info in sysexits(3), or maybe just sysexits.h.
π ENVIRONMENT π
readability-cli supports localization, using the environment variables LC_ALL, LC_MESSAGES, LANG and LANGUAGE, in that order. Only one language at a time is supported.
HTTPS_PROXY will set the HTTPS proxy, as previously stated, however the --proxy option overrides this. Node.js also recognizes lowercase https_proxy and http_proxy, for compatibility with curl.
π EXAMPLE π
Read HTML from a file and output the result to the console:
readable index.html
Fetch a random Wikipedia article, get its title and an excerpt:
readable https://en.wikipedia.org/wiki/Special:Random -p title,excerpt
Fetch a web page and read it in W3M:
readable https://www.nytimes.com/2020/01/18/technology/clearview-privacy-facial-recognition.html | w3m -T text/html
Download a web page using cURL, parse it and output as JSON:
curl https://github.com/mozilla/readability | readable --base=https://github.com/mozilla/readability --json
π SEE ALSO π
Source code, license, bug tracker and merge requests may be found on GitLab.
that's the whole READABILITY-CLI(1) page, bestie. Version v2.4.5, dated September 2023. go read something cute. π
π¦ where this page comes from
- nixos 26.05: readability-cli 2.4.5-unstable-2026-01-07
- nixpkgs unstable: readability-cli 2.4.5-unstable-2026-01-07
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms