Skip to content

exec

Fru.io exec runs a command or creates interactive session directly in the site's environment.

exec inline command

The following command illustrates calling drush version in the mysite site for the Fru-demo organization.

$ Fru.io exec --org Fru-demo mysite -- "drush version"
 Drush version : 9.7.1

Users can execute interactive exec session as well with -i argument and then interact with the site in real time.

$ Fru.io exec mysite -i -- bash

In order to terminate the interactive exec session, press CTRL+C or send SIGINT signal to the process.
In the interactive exec session, it is possible to utilize environment variables, wildcards, and the like when running commands, this is currently not possible in non-interactive exec.


Last update: 2021-09-21