mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-04 00:07:29 +03:00
40620666f8
For brevity, and consistency with --conf. --rules-file remains supported, as a hidden option. hledger's main mode now supports the hidden legacy flags, as the command modes do.
869 B
869 B
hledger import
Import new transactions from one or more data files to the main journal. More information: https://hledger.org/hledger.html#import.
- Import new transactions from
bank.csv
, usingbank.csv.rules
to convert:
hledger import {{path/to/bank.csv}}
- Show what would be imported from these two files, without doing anything:
hledger import {{path/to/bank1.csv}} {{path/to/bank2.csv}} --dry-run
- Import new transactions from all CSV files, using the same rules for all:
hledger import --rules {{common.rules}} *.csv
- Show conversion errors or results while editing
bank.csv.rules
:
watchexec -- hledger -f {{path/to/bank.csv}} print
- Mark
bank.csv
's current data as seen, as if already imported:
hledger import --catchup {{path/to/bank.csv}}
- Mark
bank.csv
as all new, as if not yet imported:
rm -f .latest.bank.csv