Skip to content

Add ability to resume when downloaded database is available - #637

Open
mikeybinns wants to merge 3 commits into
pre-releasefrom
feature/resume-setup-after-database-downloaded
Open

mikeybinns wants to merge 3 commits into
pre-releasefrom
feature/resume-setup-after-database-downloaded

Conversation

@mikeybinns

Copy link
Copy Markdown
Member

Fixes #575

Testing steps:

  1. Pull down branch
  2. Run commands via npx npx <Absolute path to project>/packages/packages/cli pull-database
  3. Change DB_HOST to "" in wp-config to force failure in the import stage.
  4. Run import, it'll download DB and fail
  5. Fix wp-config, then run command again with the following results:
    • If --resume flag used, it will import using the existing file, no prompt
    • If --fresh flag is used, it will delete the existing file, download a new one and import, no prompt
    • If no flag is used, get a prompt asking whether you want to use the file or not
    • If you select "Resume from existing file (timestamp)", it'll use the existing file
    • If you select "Start new download" it will delete the existing file, download a new one and import
    • If you use both --resume and --fresh flags at once, it will throw an error.

Co-authored-by: Matt Stone <matt.stone@atomicsmash.co.uk>
@changeset-bot

changeset-bot Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 38ded5d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@atomicsmash/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mikeybinns
mikeybinns changed the base branch from main to pre-release September 15, 2026 15:38
Comment thread packages/cli/src/commands/pull-database.ts Fixed
Comment thread packages/cli/src/commands/pull-database.ts Fixed
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.

Ability to resume setup script from an already downloaded database

2 participants