Your chart in a test ledger¶
Apply the example chart of accounts in a disposable ERPNext site, check the result, and make one change of your own. You need no Mercury or Google Cloud setup.
Use a site you can wipe: this tutorial deletes ERPNext's stock chart.
Before you start¶
You need Python 3.14, a disposable ERPNext site with one Company, and an administrator user's API key and secret. Run ERPNext's setup wizard to create the Company. Generate credentials under User > API Access > Generate Keys.
Install runningtab:
Copy and configure the books¶
Copy the contents of examples/books/ into my-books/ in your current directory. It includes books.toml for configuration and chart.coa for the chart.
In my-books/books.toml, set test_hosts under [site] to your disposable site's host:
For https://your-test-host, the host is your-test-host. The test target refuses hosts absent from this list.
Export the directory and credentials, replacing the placeholders:
export RUNNINGTAB_BOOKS=my-books
export RUNNINGTAB_TEST_URL=https://your-test-host
export RUNNINGTAB_TEST_KEY='your-api-key'
export RUNNINGTAB_TEST_SECRET='your-api-secret'
Keep using this terminal so the variables stay available. Every command below explicitly selects the test target. For command details, use runningtab coa --help.
Preview and clear the stock chart¶
Preview the changes:
The plan compares chart.coa with the site and writes nothing. On a fresh site, expect accounts under REFUSED: ERPNext's stock chart collides with the example chart.
Read the plan. Confirm that your configured URL points to the disposable site, then run:
This deletes accounts created by ERPNext's stock chart. It refuses to run once the Company's ledger contains any entries. Review the listed accounts and confirm the prompt.
Plan again:
Nothing should appear under REFUSED now. If a refusal remains, the plan names the account; delete it in ERPNext's Chart of Accounts if it has no child accounts.
Apply and check¶
Apply the chart:
Review and confirm the prompt. The command updates accounts and sets the Company's default accounts to accounts in your chart.
If the plan listed extra accounts, retire those leftovers:
This deletes accounts outside your chart or disables them where ERPNext refuses deletion.
Check the result:
Expect:
Open Chart of Accounts in ERPNext and inspect the accounts.
Make one change¶
Add one account to my-books/chart.coa, following the existing entries. The books directory reference describes the format.
Preview your edit:
Look for the change describing your added account, then apply it:
Confirm the prompt and check the new account in ERPNext.
Next, follow set up and read why write the chart down.