Provide a way to get LANDO_APP_PROJECT
via host lando cli command.
#3675
Labels
feature
Requesting that Lando do something new
I would like to extract a Lando's project name so I can run the
docker
commands on them for features not supported directly by Lando, such as:docker exec -it [$LANDO_APP_PROJECT]_cli_1 bash -c "$*"
as "lando ssh -c" does not parse its argument like a shell command within the container cli#212.docker port [$LANDO_APP_PROJECT]_mariadb_1 3306
lando list
is not accurate - it does not say if container is running or not so I have to rundocker container ls -a | grep [$LANDO_APP_PROJECT]
Currently, I have to write to some bash to extract it like:
lando info | grep hostnames | grep -o -P "[^\.]*.internal('|\")" | awk -F . '{print $1}' | head -n 1
The text was updated successfully, but these errors were encountered: