drush site:sshfor drush 9x


Connect to a Drupal site's server via SSH.

drush site:ssh

  • Aliases


    site:ssh has 2 alias/es:


    drush ssh

    drush site-ssh

  • Arguments


    site:ssh accepts 1 argument/s:


    args

  • Options


    site:ssh accepts 7 option/s:


    --cd

    --cd : cd

    --no-cd

    --no-cd : no-cd

    --ssh-options

    --ssh-options : ssh-options

    --tty

    --tty : tty

    --notify

    --notify : notify

    --druplicon

    --druplicon : druplicon

    --xh-link

    --xh-link : xh-link

  • Examples


    Open an interactive shell on @mysite's server.

    drush @mysite ssh

    Run "ls /tmp" on @prod site. If @prod is a site list, then ls will be executed on each site.

    drush @prod ssh ls /tmp

    Run "git pull" on the Drupal root directory on the @prod site.

    drush @prod ssh git pull

  • Comments


    comments powered by Disqus