psvneo/tool-dev-note

A tool to downloading database dumps of available environments.

1.2.5 2022-08-25 12:09 UTC

This package is auto-updated.

Last update: 2022-11-05 14:53:52 UTC


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

namedescription
ENVIRONMENTThe environment to fetch the database from. Use env:list to show available environments.

Documentation

You can read the documentation here.