From 93dbbe18e934d87ebf6ae6c614bb26f0e9e5afa5 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 30 Jun 2026 13:07:06 +0200 Subject: account create: add verb for asset/expense/revenue accounts New `firefly account create --type asset|expense|revenue` [--opening-balance N] [--currency CODE]. asset accounts default to the defaultAsset role; opening balance is dated today (Firefly pairs the two). Unsupported types (liability, etc.) are a hard client-side error with no API call. Live-verified against the test instance. Bumps to 0.2.0. Docs synced: README, CLAUDE.md, SKILL.md, including the category/tag auto-create clarification. Co-Authored-By: Claude Opus 4.8 --- SKILL.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'SKILL.md') diff --git a/SKILL.md b/SKILL.md index 373e5f4..7956bdd 100644 --- a/SKILL.md +++ b/SKILL.md @@ -53,6 +53,8 @@ firefly auth test verify connectivity and token firefly account list [--type asset|expense|revenue|liability|...] firefly account get firefly account balance +firefly account create --type asset|expense|revenue + [--opening-balance N] [--currency CODE] firefly tx add --from --to [--desc TEXT] [--date YYYY-MM-DD] [--category NAME] [--tags a,b] [--type T] firefly tx list [--since YYYY-MM-DD] [--until YYYY-MM-DD] [--account NAME] [--limit N] @@ -86,6 +88,16 @@ firefly tx add 1800 --from Salary --to test01 --desc "June pay" firefly tx add 200 --from test01 --to Savings --type transfer ``` +**Create an account** (when `tx add` errors that an account does not exist, +and the user confirms it should be created): +```bash +firefly account create Savings --type asset --opening-balance 0 +firefly account create Rent --type expense +``` +Supports asset, expense, revenue. asset accounts get the default role +automatically. Unlike categories/tags, accounts are NOT auto-created by +`tx add`, create them explicitly here first. + **Check a balance:** ```bash firefly account balance test01 # -> {"id","name","current_balance"} -- cgit v1.2.3