Database operations - create, connect, backup, restore databases
/plugin marketplace add mwguerra/claude-code-plugins/plugin install docker-local@mwguerra-marketplaceManage MySQL, PostgreSQL, and Redis databases.
FIRST, verify docker-local is installed:
which docker-local > /dev/null 2>&1 && echo "docker-local: OK" || echo "docker-local: NOT INSTALLED"
If NOT installed, ask user to install:
composer global require mwguerra/docker-local
export PATH="$HOME/.composer/vendor/bin:$PATH"
docker-local init
# MySQL CLI
docker-local db:mysql
# PostgreSQL CLI
docker-local db:postgres
# Redis CLI
docker-local db:redis
# Creates main + testing database
docker-local db:create myapp
# Dump current project's database
docker-local db:dump
# Dump specific database
docker-local db:dump myapp
# Restore from SQL file
docker-local db:restore backup.sql
# Fresh migration with seeds
docker-local db:fresh
Host: mysql (container) / localhost (host)
Port: 3306
User: laravel
Password: secret
Host: postgres (container) / localhost (host)
Port: 5432
User: laravel
Password: secret
From your host machine:
Host: localhost
Port: 3306 (MySQL) / 5432 (PostgreSQL)
User: laravel
Password: secret
Database: myapp
$ARGUMENTS