summaryrefslogtreecommitdiffstats
path: root/SKILL.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-06-30 13:07:06 +0200
committerDanilo M. <danix@danix.xyz>2026-06-30 13:07:06 +0200
commit93dbbe18e934d87ebf6ae6c614bb26f0e9e5afa5 (patch)
tree73770fb498e16103528bdd350d9159d3ead170aa /SKILL.md
parent2db11aa5d34766e4d23ccc308c57c470b6aa6dba (diff)
downloadfirefly-cli-0.2.0.tar.gz
firefly-cli-0.2.0.zip
account create: add verb for asset/expense/revenue accountsv0.2.0
New `firefly account create <name> --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 <noreply@anthropic.com>
Diffstat (limited to 'SKILL.md')
-rw-r--r--SKILL.md12
1 files changed, 12 insertions, 0 deletions
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 <name|id>
firefly account balance <name|id>
+firefly account create <name> --type asset|expense|revenue
+ [--opening-balance N] [--currency CODE]
firefly tx add <amount> --from <acct> --to <acct>
[--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"}