macOS
brew install hledgerlocal Homebrew formula metadata
sudo port install hledgerMacPorts ports tree · finance/hledger/Portfile · 来源: api.github.com
安装
brew install hledgerlocal Homebrew formula metadata
sudo port install hledgerMacPorts ports tree · finance/hledger/Portfile · 来源: api.github.com
sudo apk add hledgerAlpine Linux edge package indexes · hledger · 来源: dl-cdn.alpinelinux.org
sudo apt install hledgerDebian stable package indexes · hledger · 来源: deb.debian.org
sudo dnf install hledgerFedora Rawhide package metadata · hledger · 来源: dl.fedoraproject.org
nix profile install nixpkgs#hledgernixpkgs package indexes · hledger · 来源: raw.githubusercontent.com
sudo pacman -S hledgerArch Linux sync databases · hledger · 来源: geo.mirror.pkgbuild.com
sudo zypper install hledgeropenSUSE Tumbleweed package metadata · hledger · 来源: download.opensuse.org
scoop install main/hledgerScoop official bucket manifest trees · bucket/hledger.json · 来源: api.github.com
winget install --id simonmichael.hledger -eWindows Package Manager source index · simonmichael.hledger · 来源: cdn.winget.microsoft.com
概览
Easy plain text accounting with command-line, terminal and web UIs
历史
hledger is Simon Michael's Haskell implementation in the plain-text accounting family: a command-line, terminal, and web accounting tool that stores financial data in human-readable journal files and reports on money, investments, time, inventory, and other countable commodities.
hledger was created as a Haskell response to Ledger, the earlier command-line tool that pioneered plain text accounting. The hledger FAQ says the project was motivated by making finance work more enjoyable, by frustration with Ledger's stalled development and rough edges, and by the desire to build a more usable, robust, documented, cross-platform-installable version in Haskell.
The README describes the codebase as continually improved since 2007, with a focus on reliability, maintainability, and practical everyday accounting. hledger's design keeps the plain-text journal at the center while offering multiple interfaces: hledger for the CLI, hledger-ui for a terminal interface, and hledger-web for a browser UI.
hledger has grown inside the broader Plain Text Accounting ecosystem. The hledger manual states that it is inspired by and largely compatible with ledger(1), and largely interconvertible with beancount(1). The hledger and Ledger page describes hledger as a reimplementation of Ledger's best parts with stronger focus on UX, reliability, consistency, and real-world practicality.
In 2026, the README records a branch split: the former master branch became hledger1 and work began on hledger 2.x in main. The stated 2.x goals include better lot tracking and capital gains calculation, more interoperability, more speed, easier contribution, and continued reliability.
hledger adoption is tied to the plain-text accounting community: users choose editable text files, version control, scripts, and transparent data over database-backed personal finance applications. The README names the Plain Text Accounting ecosystem, documentation, videos, tutorials, editor/IDE integrations, mobile and web interfaces, and a contributor base as part of the project context.
The Homebrew input facts show broad packaging across Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, WinGet, and openSUSE. That breadth matters because hledger is used by individuals and organizations on Unix, macOS, and Windows workstations.
The hledger FAQ frames the project's mission beyond a single executable: making plain text accounting more usable and useful, reducing finance and financial-technology stress, and supporting a thriving ecosystem of financial software projects.
hledger reads journal files containing dated double-entry transactions, then produces reports such as balance sheets, income statements, registers, budgets, and cashflow views. Users can edit data directly in a text editor, import CSV from banks, use terminal data-entry tools, use hledger-web, or integrate it into scripts and version-control workflows.
The manual describes hledger as a robust, user-friendly, cross-platform set of programs for tracking money, time, or any other commodity. The README highlights CSV import/export, text/HTML/JSON/SQL output, multi-currency support, high precision, and scriptability through CLI, HTTP, or API.
hledger is important to package nerds because it treats accounting data as durable text. That makes backups, diffs, version control, review, automation, and migration tractable in a way that opaque finance-app databases often are not.
It also anchors one of the most package-manager-friendly corners of personal finance software: a Haskell executable suite with CLI/TUI/web surfaces, docs shipped with the tool, and broad distro packaging. For users who prefer reproducible environments and text-first workflows, hledger is one of the central packages in the plain-text accounting toolbox.
Its relationship to Ledger and Beancount makes it part of a larger lineage rather than an isolated app. Package maintainers and users often evaluate the three together: Ledger for the original format and C++ implementation, Beancount for Python-oriented workflows, and hledger for Haskell, cross-platform installability, and active UX-focused maintenance.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
hledger.conf~/.hledger.conf~/.config/hledger/hledger.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hledger | cli | 全局可执行文件 | |
hledger-ui | cli | 全局可执行文件 | |
hledger-web | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/simonmichael/hledger
安装元数据
| 软件包键 | brew:hledger |
|---|---|
| 版本 | 1.52.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/hledger |
| 主页 | https://hledger.org/ |
| 仓库 | https://github.com/simonmichael/hledger |
| 上游文档 | https://hledger.org/doc.html |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://github.com/simonmichael/hledger/archive/refs/tags/1.52.1.tar.gz |
| 最后更新 | 2026-07-24T01:58:27Z |
| Pulse | updated |
| 依赖 | gmp, libyaml |
| 构建依赖 | ghc, haskell-stack, pkgconf |
| macOS 提供的库 | libffi, ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hledger |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
hledger 1.32.3-1+b2
command-line double-entry accounting program
sudo apt install hledgerhledger
nix profile install nixpkgs#hledgerhledger 1.30.1-1
command-line double-entry accounting program
sudo apt install hledgerhledger 1.52-r0
Command-line interface for the hledger accounting system
https://hledger.org/hledger.html
sudo apk add hledgerhledger-bash-completion 1.52-r0
Bash completions for hledger
https://hledger.org/hledger.html
sudo apk add hledger-bash-completionhledger-doc 1.52-r0
Command-line interface for the hledger accounting system (documentation)
https://hledger.org/hledger.html
sudo apk add hledger-dochledger-ui 1.52-r0
Curses-style terminal interface for the hledger accounting system
https://hledger.org/hledger-ui.html
sudo apk add hledger-uihledger-ui-doc 1.52-r0
Curses-style terminal interface for the hledger accounting system (documentation)
https://hledger.org/hledger-ui.html
sudo apk add hledger-ui-dochledger-web 1.52-r0
Web interface for the hledger accounting system
https://hledger.org/hledger-web.html
sudo apk add hledger-webhledger-web-doc 1.52-r0
Web interface for the hledger accounting system (documentation)
https://hledger.org/hledger-web.html
sudo apk add hledger-web-dochledger-web-openrc 1.52-r0
Web interface for the hledger accounting system (OpenRC init scripts)
https://hledger.org/hledger-web.html
sudo apk add hledger-web-openrcghc-hledger 1.43.2-18.fc44
Haskell hledger library
https://hackage.haskell.org/package/hledger
sudo dnf install ghc-hledgerghc-hledger-devel 1.43.2-18.fc44
Haskell hledger library development files
https://hackage.haskell.org/package/hledger
sudo dnf install ghc-hledger-develghc-hledger-doc 1.43.2-18.fc44
Haskell hledger library documentation
https://hackage.haskell.org/package/hledger
sudo dnf install ghc-hledger-docghc-hledger-prof 1.43.2-18.fc44
Haskell hledger profiling library
https://hackage.haskell.org/package/hledger
sudo dnf install ghc-hledger-profghc-quote-quot 0.2.1.0-18.fc44
Haskell quote-quot library
https://hackage.haskell.org/package/quote-quot
sudo dnf install ghc-quote-quot来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.