sync-ledger.js mirrors ledger.csv into the Ledger tab of the Google Sheet
“Ledger” (owned by
env.txt OAuth client lives):
http://localhost:53682/ to its Authorized redirect URIs.
(A Desktop app client needs no change.)<your-google-account>@gmail.com as a test user. Note: testing-mode refresh tokens
expire after 7 days — publish the app to “In production” to avoid weekly
re-authorization.node sync-ledger.js auth, open the printed URL, and sign in as
**node sync-ledger.js
Clears the Ledger tab and rewrites it with the full contents of ledger.csv
(header + all rows), so the sheet always matches the local ledger exactly.
ledger.csv stays the source of truth; the sheet is a mirror.
env.txt — OAuth client id/secrettoken.json — refresh token granting Sheets access (created by the auth step)Do not commit either file if this folder ever becomes a git repository.