Skip to main content

tldr-man

A tldr-pages client that works just like man

tldr-man is a command-line client for tldr-pages, a collection of community-maintained help pages for command-line tools. It differs from other clients because it displays its pages as man pages.

This client is also able to integrate with the man command to fall back to displaying a tldr-page for a command when no manpage exists.

Features:

  • Fully abides by the tldr-pages client specification.
  • Supports all page languages, not just English pages.
  • Displays tldr-pages in the same style as manpages.
  • Integrates with man to provide a fallback for missing manpages.
  • Supports rendering markdown formatted tldr-pages with --render.
  • Local cache abides by the XDG base directory specification.
  • Supports shell completion for bash, zsh, and fish shells.
  • And much more!

Installation

With Homebrew

Install tldr-man with Homebrew:

brew install superatomic/tap/tldr-man

With Pip

Install tldr-man with pip (version 3.10+):

pip install tldr-man

tldr-man additionally depends on pandoc being installed.

After installation, you can view a tldr-page with the tldr command.

Usage

Display a tldr-page for a command:

tldr <COMMAND>

Update the local page cache:

tldr --update

Render a page locally:

tldr --render path/to/page.md

Print tldr manpage paths as a colon-separated list (see the Manpage Integration section):

tldr --manpath

Display usage information:

tldr --help

Setting languages

As specified by the tldr-pages client specification, tldr-pages from other languages can be displayed by this client (falling back to English if the page doesn't exist for that language).

To do so, set any of the environment variables $LANG, $LANGUAGE, or $TLDR_LANGUAGE to the two-letter language code for your language (e.g. export LANGUAGE=es), or set the --language option when running tldr (e.g. tldr <COMMAND> --language es).

Setting platforms

By default, tldr-pages will be displayed based on your current platform. To directly specify what platform's page to use, use the --platform flag.

For example, to display the macOS version of the top command's tldr-page, run tldr top --platform macos. This is the default behavior on macOS, but --platform macos is required to show the macOS version of this page on other platforms.

Manpage Integration

The command man can be set up to fall back to displaying tldr-pages if no manpages are found.

To do so, add the provided line to your shell's startup script (e.g. ~/.bash_profile, ~/.zshenv, ~/.config/fish/config.fish) to add this behavior to man:

Bash and Zsh

export MANPATH="$MANPATH:$(tldr --manpath)"

Fish

set -gxa MANPATH (tldr --manpath)

Metadata

Release files for tldr-man 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tldr-man 1.5.2
File Size Uploaded
tldr_man-1.5.2.tar.gz 19.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tldr-man 1.5.2
File Interpreter ABI Platform
tldr_man-1.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 45.3 kB

Release files / tldr_man-1.5.2.tar.gz

Download URL tldr_man-1.5.2.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9846937efea7e6c9505545f8725773bb2a68185dc015479207da0b185b797dc3
BLAKE2b-256 checksum
How to use checksums
9ed5145efae76326bb9b53a08b67c45f315336f0e193821ecde22e21a94785a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0

Release files / tldr_man-1.5.2-py3-none-any.whl

Download URL tldr_man-1.5.2-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdd185bb3f386c9f87b9ec94b6439c34f2ebcb8add0cb5d323b63eeff59a2b02
BLAKE2b-256 checksum
How to use checksums
e6dfd26829d57a919c3a239f4aa14c205bbdda1e81588b9c962d46257dad0bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

1.5.2 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page