digifactory/laravel-pull-production-data

Pull your production storage folder and database to your local environment
17,618 12
Install
composer require digifactory/laravel-pull-production-data
Latest Version:v5.0.2
PHP:^8.3
License:MIT
Last Updated:Apr 19, 2026
Links: GitHub  ·  Packagist
Maintainer: digifactory

Laravel Pull Production Data

Latest Version on Packagist MIT Licensed run-tests Quality Score StyleCI Total Downloads

This package provides a command to download your production database and storage/app folder to your local environment.

In the current state this package mainly scratches our own itch. Nonetheless this package can be used in nearly every Laravel environment.

The package assumes you have:

  • Environment variables DEPLOY_SERVER and DEPLOY_PATH (customisable in the config)
  • Setup SSH keys between your machine and the production machine
  • mysql binary available on your local machine
  • mysqldump binary available on your production machine

Installation

You can install the package via composer:

composer require digifactory/laravel-pull-production-data --dev

You can publish the config file:

php artisan vendor:publish --provider="DigiFactory\PullProductionData\PullProductionDataServiceProvider" --tag="config"

Usage

By default both the database and the storage folder will be synced.

php artisan pull-production-data

The following flags are available:

Flag Description
-D, --no-database Whether the database should not be synced
-S, --no-storage-folder Whether the storage folder should not be synced
-C, --no-appending-commands Whether the appending commands should run

V4.1

Since this version it is possible to run any command when php artisan pull-production-data is completed. For example: this way you can anonimize data for local/testing purpose.

Preview

Screenshot of the command

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email helpdesk@digifactory.nl instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

digifactory/filament-wildcard-login

Allow all e-mail addresses for a specific domain name to login to a generic acco...

1,863 12
digifactory/laravel-svg-fixer-middleware

Fixes your uploaded SVG files before validating through the Laravel validator

35,435 5
digifactory/laravel-cookie-consent

Easily deal with cookie consent in your Laravel applications

16,787 9
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950

Version History

Version Released PHP Laravel License
v5.0.2 ^8.3 ^11.0|^12.0|^13.0 MIT
v5.0.1 ^8.3 ^11.0|^12.0|^13.0 MIT
v5.0.0 ^8.3 ^11.0|^12.0|^13.0 MIT
v4.2.1 ^8.2 ^11.0|^12.0 MIT
v4.2.0 ^8.2 ^11.0|^12.0 MIT