psvneo/tool-dev-note

A tool to downloading database dumps of available environments.

2.0.2 2023-09-18 14:14 UTC

This package is auto-updated.

Last update: 2024-04-05 17:50:35 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.