commands.sh

hledger add

all

Record new transactions with interactive prompting in the console.

More info →

Options (2)

-f, --fileboolean

Add transactions to `2024.journal`, but also load `2023.journal` for completions

Example: hledger add {{[-f|--file]}} {{path/to/2024.journal}} {{[-f|--file]}} {{path/to/2023.journal}}
-h, --helpboolean

Show `add`'s options and documentation with `$PAGER`

Example: hledger add {{[-h|--help]}}

Examples (5)

Record new transactions, saving to the default journal file

Add transactions to `2024.journal`, but also load `2023.journal` for completions

hledger add [-f|--file] path/to/2024.journal [-f|--file] path/to/2023.journal

Provide answers for the first four prompts

hledger add today 'best buy' expenses:supplies '$20'

Show `add`'s options and documentation with `$PAGER`

hledger add [-h|--help]

Show `add`'s documentation with `info` or `man` if available

made by @shridhargupta | data from tldr-pages