Skip to Content
Commands

account

Manage the chart of accounts.

traj account manages the chart of accounts. An account has one of five types — asset, liability, equity, income, expense — and a currency; this release supports THB only. Accounts nest under a parent by name or id; only leaf accounts take postings.

traj account add <name>

Create an account in the chart.

  • --type <string> — the kind of account; required
  • --currency <string> — ISO 4217 currency; v1 supports THB only; required
  • --parent <string> — the parent account’s name or id
  • --dry-run — report the row and roll the write back
traj account add Cash --type asset --currency THB                   # Create a top-level cash account.
traj account add Savings --type asset --currency THB --parent Bank  # Nest it under a parent account.

traj account close <account>

Archive an account, keeping its history.

  • --dry-run — report the row and roll the write back
traj account close Cash            # Archive an account by name.
traj account close Cash --dry-run  # Show what closing would do.

traj account list

List the chart of accounts by name.

traj account list --json  # Show the chart as JSON.

traj account show <account>

Show one account with its parent and children. The account is named by its exact name or its id.

traj account show Cash                                  # Show an account by name.
traj account show 0194a000-0002-7000-8000-000000000002  # By id.

Decisions

See Commands for the global options, exit codes and error envelope.