Skip to content

Executing an arbitrary shell command

A shell provides Developers direct access to the environment for debugging and standard operations eg. Password resets.


$ skpr exec dev -- echo Hello\ World\!

Hello World!

Other useful purposes:

If you've just deployed an environment and wish to get your application up, you might wish to run other commands. For example, if you have a Drupal application you'll also have access to Drush.

skpr exec dev "drush updatedb -y"
skpr exec dev "drush cache:rebuild"

More Information

$ skpr exec --help

usage: skpr exec <environment> <command>...

Executes a bash command on the specified environment.

  --help  Show context-sensitive help (also try --help-long and --help-man).

  <environment>  Source environment as configured in skipper.
  <command>      Command to execute on remote environment.

What's next?

After deleting an environment, consider one of the following:

Back to top