As a heavy Beancount user myself, I always wanted a simple command line to rename an account or a currency name in all files at once. Certainly, the text editing tool search and replace feature could help, but from time to time, there will be a name that happens to be a substring of another unrelative string (such as Assets:Cash and Assets:Cash:WindFall), making massive renaming a bit more annoying.
I have built this functionality for BeanHub previously, but because it's super useful, I have always wanted to bring it to our open-sourced command line tool, beanhub-cli. Today, I finally found the time to do it. With the new release 1.4.2, you can do this to run format with renaming account and currency as a side effect:
bh format \
-ra Assets:Cash Assets:Cash:Wallet \
-ra Expenses:Food Expenses:Dining \
-rc BITCOIN BTC \
-rc ETHER ETH
You can find the repo here:
and the doc for format here: