Skip to content

Add import-database command#35

Open
joehoyle wants to merge 1 commit intomainfrom
add-import-database-command
Open

Add import-database command#35
joehoyle wants to merge 1 commit intomainfrom
add-import-database-command

Conversation

@joehoyle
Copy link
Member

@joehoyle joehoyle commented Mar 11, 2026

Summary

  • Add stack import-database command for importing databases between applications
  • Add --debug request logging to vantage.fetch() for all commands
  • Show elapsed time in stream status bar
  • Fix got.stream() ESM compatibility in stream.js

import-database options

  • --from (required) — source application
  • --replacements — comma-separated search=replace URL replacement pairs
  • --tables — comma-separated list of specific tables
  • --mysqldump — use legacy mysqldump instead of mydumper
  • --resume — resume watching an existing import log
  • --debug — log HTTP requests/responses

Includes a production safety check that warns and requires confirmation before importing into a production environment.

Test plan

  • altis-cli stack import-database --help shows all options
  • altis-cli stack import-database <target> --from <source> runs import with mydumper
  • altis-cli stack import-database <target> --from <source> --mysqldump falls back to mysqldump
  • --debug shows request/response details for all commands
  • Elapsed time displays in status bar during streaming

🤖 Generated with Claude Code

Add `stack import-database` command for importing databases between
applications, with support for --replacements, --tables, --mysqldump,
and production safety confirmation.

Also adds:
- Debug request logging (--debug) to vantage.fetch for all commands
- Elapsed time display in stream status bar
- Fix got.stream() call for ESM compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@joehoyle
Copy link
Member Author

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