2024-05-24 08:57:36 -10:00
|
|
|
# hledger add
|
|
|
|
|
|
|
|
> Record new transactions with interactive prompting in the console.
|
|
|
|
> More information: <https://hledger.org/hledger.html#add>.
|
|
|
|
|
|
|
|
- Record new transactions, saving to the default journal file:
|
|
|
|
|
|
|
|
`hledger add`
|
|
|
|
|
|
|
|
- Add transactions to `2024.journal`, but also load `2023.journal` for completions:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`hledger add {{[-f|--file]}} {{path/to/2024.journal}} {{[-f|--file]}} {{path/to/2023.journal}}`
|
2024-05-24 08:57:36 -10:00
|
|
|
|
|
|
|
- Provide answers for the first four prompts:
|
|
|
|
|
|
|
|
`hledger add {{today}} '{{best buy}}' {{expenses:supplies}} '{{$20}}'`
|
|
|
|
|
|
|
|
- Show `add`'s options and documentation with `$PAGER`:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`hledger add {{[-h|--help]}}`
|
2024-05-24 08:57:36 -10:00
|
|
|
|
|
|
|
- Show `add`'s documentation with `info` or `man` if available:
|
|
|
|
|
|
|
|
`hledger help add`
|