LinuxCommandLibrary

hledger-add

interactively prompts for new transactions and appends them to the journal file

TLDR

Add transactions interactively

$ hledger add
copy
Add to specific file
$ hledger add -f [journal.ledger]
copy
Dry run without writing
$ hledger add --dry-run
copy
Disable history suggestions
$ hledger add --no-history
copy

SYNOPSIS

hledger add [options]

DESCRIPTION

hledger add interactively prompts for new transactions and appends them to the journal file. It guides through date (defaults to today), description, account names, and amounts with auto-completion from existing entries. Ensures transactions balance before writing. Enter . when finished adding transactions.

PARAMETERS

-f, --file file

Use specified journal file.
--dry-run
Print entry without writing.
--no-history
Disable suggestion of past values.

CAVEATS

This is the only hledger command that writes to the journal file. Existing transactions are never modified.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community