Automic VaultAutomic Vault

brew

Install hledger with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Easy plain text accounting with command-line, terminal and web UIs. Version 1.52.1 via Homebrew; verified 2026-04-29.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install hledger

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install hledger

MacPorts ports tree · finance/hledger/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add hledger

Alpine Linux edge package indexes · hledger · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install hledger

Debian stable package indexes · hledger · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install ghc-hledger

Fedora Rawhide package metadata · ghc-hledger · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#hledger

nixpkgs package indexes · hledger · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S hledger

Arch Linux sync databases · hledger · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install ghc-hledger

openSUSE Tumbleweed package metadata · ghc-hledger · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/hledger

Scoop official bucket manifest trees · bucket/hledger.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id simonmichael.hledger -e

Windows Package Manager source index · simonmichael.hledger · source: cdn.winget.microsoft.com

overview

Package summary

Easy plain text accounting with command-line, terminal and web UIs

Commands and aliases

  • hledger
  • hledger-ui
  • hledger-web

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2007: hledger development lineage begins according to the project README.
  • 2008: hledger maintenance and support era is described on the hledger and Ledger page.
  • 2013-04-08: The simonmichael/hledger GitHub repository was created.
  • 2026: The former master branch was renamed hledger1 and hledger 2.x work began in main.

Related projects

  • Ledger: the original plain-text accounting CLI and file-format influence.
  • Beancount: a Python plain-text accounting system that hledger documentation names as largely interconvertible.
  • PlainTextAccounting.org: the ecosystem portal maintained by Simon Michael for related tools, docs, and community resources.
  • hledger-ui and hledger-web: sibling interfaces shipped in the hledger suite.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
hledger.conf~/.hledger.conf~/.config/hledger/hledger.conf

executables

Installed executables

CommandKindExposureNote
hledgercliglobal executable
hledger-uicliglobal executable
hledger-webcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.52.1
manager updated2026-04-29
local dataok
upstreamcurrent
latest detected1.52.1

https://github.com/simonmichael/hledger

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:hledger
Version1.52.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/hledger
Homepagehttps://hledger.org/
Repositoryhttps://github.com/simonmichael/hledger
Upstream docshttps://hledger.org/doc.html
LicenseGPL-3.0-or-later
Source archivehttps://github.com/simonmichael/hledger/archive/refs/tags/1.52.1.tar.gz
Last updated2026-04-29T13:06:53Z
Pulseupdated
Dependenciesgmp
Build dependenciesghc, haskell-stack
Uses from macOSlibffi, ncurses
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehledger
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

hledger 1.32.3-1+b2

command-line double-entry accounting program

https://hledger.org

sudo apt install hledger
  • Section: utils
  • Architecture: amd64
  • Source Package: haskell-hledger
  • 6 dependencies
  • normalized package name match
  • Matched by: Hledger
Debian stable package indexes · deb.debian.org · Debian stable package indexes: hledger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

hledger

nix profile install nixpkgs#hledger
  • normalized package name match
  • Matched by: Hledger
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: hledger from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

hledger 1.30.1-1

command-line double-entry accounting program

https://hledger.org

sudo apt install hledger
  • Section: universe/haskell
  • Architecture: amd64
  • Source Package: haskell-hledger
  • 5 dependencies
  • normalized package name match
  • Matched by: Hledger
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: hledger from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

hledger 1.52-r0

Command-line interface for the hledger accounting system

https://hledger.org/hledger.html

sudo apk add hledger
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-bash-completion 1.52-r0

Bash completions for hledger

https://hledger.org/hledger.html

sudo apk add hledger-bash-completion
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-doc 1.52-r0

Command-line interface for the hledger accounting system (documentation)

https://hledger.org/hledger.html

sudo apk add hledger-doc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-ui 1.52-r0

Curses-style terminal interface for the hledger accounting system

https://hledger.org/hledger-ui.html

sudo apk add hledger-ui
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-ui from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-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-doc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-ui-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-web 1.52-r0

Web interface for the hledger accounting system

https://hledger.org/hledger-web.html

sudo apk add hledger-web
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-web from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-web-doc 1.52-r0

Web interface for the hledger accounting system (documentation)

https://hledger.org/hledger-web.html

sudo apk add hledger-web-doc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-web-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-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-openrc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • Matched by: Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-web-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ghc-hledger 1.43.2-18.fc44

Haskell hledger library

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 32 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hledger-devel 1.43.2-18.fc44

Haskell hledger library development files

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger-devel
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hledger-doc 1.43.2-18.fc44

Haskell hledger library documentation

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger-doc
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: hledger
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hledger-prof 1.43.2-18.fc44

Haskell hledger profiling library

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger-prof
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-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
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 13 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-quote-quot from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment