packages feed

hledger-2.0: Hledger/Cli/Commands/Setup.txt

setup

Check the status of the hledger installation.

Flags:
no command-specific flags

setup tests your hledger installation and prints a list of results,
sometimes with helpful hints. This is a good first command to run after
installing hledger. Also after upgrading, or when something's not
working, or just when you want a reminder of where things are.

It makes one network request to detect the latest hledger release
version. It's ok if this fails or times out. It will use ANSI color by
default, unless disabled by NO_COLOR or --color=n. It does not use a
pager or a config file.

It expects that the hledger version you are running is installed in your
PATH. If not, it will stop until you have done that (to keep things
simple).

Example:

$ hledger setup
Checking your setup (and contacting hledger.org to find out the current release):
hledger
  is running on                                 macos 27.0 on aarch64
  is built with a supported compiler/RTS   yes  ghc 9.14.1, using threaded RTS
  is a native binary for this machine ?    yes  aarch64
  is a released version ?                  yes  hledger 1.52.4, mac-aarch64
  is up to date ? checking latest...       yes  latest is 1.52.4, 1.52.4 is installed
  is installed in PATH (this version) ?    yes  /Users/user/.local/bin/hledger
  has a system text encoding configured ?  yes  UTF-8, data files must use this encoding
  has a user config file ?                 yes  /Users/user/.hledger.conf
  has a local config file ?                 no  
  the config file is readable ?            yes  
terminal
  the TERM variable is defined ?           yes  xterm-256color
  the terminal supports ANSI color ?       yes  
  ...
journal
  the LEDGER_FILE variable is defined ?    yes  /Users/user/finance/main.journal
  a default journal file is readable ?     yes  /Users/user/finance/main.journal
  ...