Skip to content

Commit bd8d388

Browse files
authored
MCLOUD-5709: Add DB access to the CLI (#192)
1 parent 97b601c commit bd8d388

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dist/bin/magento-docker

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ USAGE="Magento Cloud Docker
1616
ece-deploy run deploy hooks
1717
ece-post-deploy run post-deploy hooks
1818
ece-redeploy run build, deploy, and post-deploy hooks
19+
ece-db access to Database
1920
2021
\033[33mOptions:\033[0m
2122
-h show this help text\n"
@@ -62,6 +63,9 @@ case "$1" in
6263
docker-compose run --rm deploy cloud-deploy
6364
docker-compose run --rm deploy cloud-post-deploy
6465
;;
66+
ece-db)
67+
docker-compose exec db sh -c 'mysql -u $MYSQL_USER -p$MYSQL_PASSWORD $MYSQL_DATABASE "$@"'
68+
;;
6569
*)
6670
printf "$USAGE"
6771
exit 0;

0 commit comments

Comments
 (0)