Skip to content

docs(base44-cli): local data persistence & seeding for base44 dev - #140

Draft
netanelgilad wants to merge 1 commit into
mainfrom
claude/base44-cli-seed-feature-30br0e
Draft

docs(base44-cli): local data persistence & seeding for base44 dev#140
netanelgilad wants to merge 1 commit into
mainfrom
claude/base44-cli-seed-feature-30br0e

Conversation

@netanelgilad

Copy link
Copy Markdown
Contributor

Documents the upcoming Base44 CLI local-data feature in the base44-cli skill. Companion to the implementation PR in base44/cli (same branch name); merge when that release ships.

What changed

  • New references/local-data.md — full guide: .base44/ state dir + dev.json + base44 dev status; seed fixtures (base44/seed/users.jsonc, <Entity>.jsonc) with the upsert idempotency contract; base44 dev seed [--replace] / base44 dev reset; programmatic base44/seed.ts (ctx.base44 local service-role client, ctx.remote({dataEnv}) remote factory, Deno requirement); base44 data pull / data dump; agent guidance (--json, --force, instance discovery via dev.json with stale-pid semantics).
  • references/dev.md — persistence-by-default behavior, --fresh, seed-on-first-boot lifecycle, schema-edits-preserve-data, app-id mismatch guard, worktree isolation.
  • SKILL.md — project layout gains base44/seed/ + base44/seed.ts + gitignored .base44/; seedDir added to the config.jsonc table; new command rows (dev status/seed/reset, data pull/dump); troubleshooting entries.

CLI version is a "0.0.x (upcoming)" placeholder — set the real version at release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MdYwKUei4xxBZTZcBUmbaw


Generated by Claude Code

…4 dev

Documents the upcoming local-data feature of the Base44 CLI:

- references/dev.md: persistence-by-default (.base44/ state dir, survives
  restarts and entity edits, safe to delete), the --fresh flag, the
  seed-on-first-boot lifecycle, and pointers to the new reference doc
- references/local-data.md (new): full guide — state dir layout, dev.json
  + base44 dev status, seed fixtures (users.jsonc / <Entity>.jsonc) with
  the upsert idempotency contract, base44 dev seed/reset, programmatic
  base44/seed.ts (ctx.base44 / ctx.remote({dataEnv}) / Deno), base44 data
  pull/dump with flags and JSON output shapes, and agent guidance
  (--json, --force in non-interactive mode, instance discovery)
- SKILL.md: seed/ dir, seed.ts and .base44/ in the project layout,
  seedDir in the config.jsonc schema, new dev status/seed/reset and
  data pull/dump command index entries, workflow and troubleshooting notes

Feature requires CLI version >= 0.0.x (upcoming release).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MdYwKUei4xxBZTZcBUmbaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants