Skip to content

v1.2.0

Latest

Choose a tag to compare

@phpawcom phpawcom released this 02 Dec 18:43

Interactive wizard: php artisan clone

A guided menu for pull, backup, restore and list. Pick what to do, then answer a few questions with the arrow keys:

  • Pull lists your configured remotes, or you can type [user@]host:/path.
  • Restore lists your archives with their source, database, size and whether they include storage.
  • Shared questions cover storage, migrations, maintenance mode, the safety backup and sanitizers.

Before it runs, the wizard prints the equivalent command (for example php artisan clone:pull production --ssh-prompt). Pull and restore always ask for a final confirmation. The wizard runs the same clone:* commands, so both behave exactly the same.

SSH passwords and key passphrases: clone:pull --ssh-prompt

You can also set it per remote with ssh_prompt in config or CLONE_{NAME}_SSH_PROMPT=true in .env. clone:pull opens one SSH connection in your terminal, where you type the password or passphrase once. The remote backup, the download and the cleanup all reuse that connection (SSH connection sharing). It needs an interactive terminal, so don't use it in cron or CI.

Other changes

  • laravel/prompts is now a declared dependency. Laravel already installs it.

This package was written entirely by Claude (Anthropic).