Skip to content

/finplan:save-state

Save the current FinPlan user state JSON to a local file after any state modification.


Usage

Type /finplan:save-state optionally followed by a file path.


Arguments

Argument Description
(empty) Save to default file (finplan_state.json or most recent *_finplan_state.json)
[file-path] Explicit save path

When to Save

Save immediately after every state change:

  • Creating a new profile
  • Adding or updating accounts
  • Adding or updating goals
  • Updating person info
  • Any new financial information

Warning

Don't batch saves. Save after each individual change to avoid data loss.


What It Does

  1. Finds the existing state file (or creates a new one)
  2. Updates the last_updated field to today's date
  3. Writes the complete state JSON with 2-space indentation
  4. Confirms the save with file path and summary