Skip to content

feat(cli): appkit db init — one-command lakebase onboarding#357

Draft
ditadi wants to merge 4 commits intostack/database/brownfieldfrom
stack/database/init
Draft

feat(cli): appkit db init — one-command lakebase onboarding#357
ditadi wants to merge 4 commits intostack/database/brownfieldfrom
stack/database/init

Conversation

@ditadi
Copy link
Copy Markdown
Contributor

@ditadi ditadi commented May 6, 2026

🥞 Stacked PR

Use this link to review incremental changes.


Summary

appkit db init interactively onboards an existing or new Lakebase database in one command.

  • Picks/creates project, branch, endpoint
  • Plans + applies env diff with .env.bak backup
  • --dry-run, --from <existing>, --allow-destructive (for reset)
  • Atomic .env writer
  • Seed prod guard

Stack (4/8)

  1. #354 foundation
  2. server
  3. brownfield
  4. init ← this PR
  5. frontend
  6. ui
  7. advanced
  8. release

Test plan

  • biome check
  • typecheck
  • vitest (init flow tests pass)

@ditadi ditadi force-pushed the stack/database/init branch from d8a863b to 7f53a55 Compare May 7, 2026 01:28
@ditadi ditadi force-pushed the stack/database/brownfield branch from 35830ad to 0bcf90a Compare May 7, 2026 01:28
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.

1 participant