Once you’ve written or edited a tldr page, this guide walks you through validating your work locally and opening a clean pull request that is easy for maintainers to review and merge.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tldr-pages/tldr/llms.txt
Use this file to discover all available pages before exploring further.
Testing locally
Install tldr-lint
tldr-lint is the official linter for tldr pages. Install it globally using npm (requires the latest version of Node.js):tldrl once installed.Run the linter against your page
Point The linter will report any formatting issues — fix them before submitting. You can also lint an entire directory at once:
tldr-lint at the page file you created or modified:Preview the rendered page (optional)
Depending on your tldr client, you may be able to preview how the page will look when rendered:This is a quick sanity check to make sure placeholders, descriptions, and commands display as expected.
Pre-commit hook
After cloning the repository, install the npm dependencies from inside thetldr directory:
Submitting via GitHub
The easy way: edit directly on GitHub
The easiest way to submit a change is to edit the Markdown file directly in the GitHub web interface by clicking the pencil icon on any file. GitHub will automatically fork the repository, apply your change, and guide you through opening a pull request. Full step-by-step instructions with screenshots are available in the GitHub Help docs.Via Git on the command line
If you prefer working locally, follow the standard Git workflow:tldr-pages/tldr:main.
A full walkthrough using the Git command line is also available in the git-terminal guide.
PR best practices
- Enable “Allow edits by maintainers” on your pull request. This only needs to be done once (the first time you open a PR). It allows maintainers to push small fixes directly to your branch to help get it merged, and ensures the contribution can proceed even if you become unavailable.
- Base against the
mainbranch. All page additions and edits should targetmain, not any other branch. - Do not force-push unless strictly necessary. The project prefers to preserve the commit history within a PR so the chronological order of review comments and their addressing commits stays clear. PRs are typically squashed on merge, so a messy commit history in the PR branch is not a problem.
- Use the correct commit message format:
command: type of change(e.g.tar: add --strip-components example,cp: add Tamil translation).
Handling review suggestions
Maintainers may leave inline suggestions on your pull request. The easiest way to apply them is to click the Commit suggestion button directly in the GitHub review UI — no need to edit files locally. To apply multiple suggestions in a single commit:- Go to the Files changed tab of your pull request.
- Add all the suggestions you want to include using Add suggestion to batch.
- Click Commit suggestions and enter a descriptive commit message.
After your PR merges
Once your pull request is merged intomain, it becomes part of the official tldr-pages repository. Pages are available in official clients as soon as a new release is published — typically shortly after the merge.
Your contribution will also appear on the contributors graph. Thank you for helping make command-line tools more approachable for everyone!
You must sign the Contributor License Agreement (CLA) before your pull request can be merged. Sign it at https://cla-assistant.io/tldr-pages/tldr. The CLA assistant bot will leave a comment on your PR if you haven’t signed yet.