psvneo / tool-dev-note
A tool to downloading database dumps of available environments.
2.0.2
2023-09-18 14:14 UTC
Requires
- php: ^7.4||^8.0
- laravel-zero/phar-updater: ^1.1
- spatie/ssh: ^1.6
- symfony/config: ^5.4
- symfony/console: ^5.3
- symfony/dependency-injection: ^5.4
- symfony/dotenv: ^5.4
- symfony/finder: ^5.4
- symfony/yaml: ^5.4
- xobotyi/rsync: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- overtrue/phplint: ^3.4
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.6
README
A tool to downloading database dumps of available environments.
Requirements
- PHP 7.4
- Spatie SSH ^1.6
- Symfony console ^5.3
- vlucas PHP dot env ^5.1
Build phar file
Run the following to build the .phar file.
composer phar
Commands
Show available environments
This command is used to show a list of available environments to fetch database dumps from.
vendor/bin/dev-note env:list
Dump database
This command is used to fetch a database dump of a given environment. The dump will be transferred to the root of the project and named like DBNAME.ENVIRONMENT.sql
vendor/bin/dev-note db:dump ENVIRONMENT
Arguments
name | description |
---|---|
ENVIRONMENT | The environment to fetch the database from. Use env:list to show available environments. |
Documentation
You can read the documentation here.