PHPackages                             rimi-itk/remote-commands - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. rimi-itk/remote-commands

ActiveLibrary[CLI &amp; Console](/categories/cli)

rimi-itk/remote-commands
========================

Run Drupal and Symfony cli commands via ssh

1.8(2y ago)110MITPHPPHP ^8.0

Since Feb 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rimi-itk/remote-commands)[ Packagist](https://packagist.org/packages/rimi-itk/remote-commands)[ RSS](/packages/rimi-itk-remote-commands/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (15)Used By (0)

Remote commands
===============

[](#remote-commands)

Helps running commands on remote hosts accesible via `ssh`

Installation
------------

[](#installation)

```
composer global require rimi-itk/remote-commands
```

### Completions

[](#completions)

```
eval "$(remote-drupal-drush --completion)"
```

#### Helpers

[](#helpers)

@TODO

Usage
-----

[](#usage)

Run

```
bin/remote-command --help
```

Configuration
-------------

[](#configuration)

All configuration of hosts is done in your [OpenSSH client configuration file (`~/.ssh/config`)](https://man.openbsd.org/ssh_config).

Assuming the following configuration is set in `~/.ssh/config`

```
# https://man.openbsd.org/ssh_config#IgnoreUnknown
IgnoreUnknown DRUPAL_*,SYMFONY_*

Host drupal.example.com
  …
  DRUPAL_DRUSH_ROOT /data/www/drupal/htdocs/web
  DRUPAL_DRUSH_DRUSH ../vendor/bin/drush
  DRUPAL_DRUSH_URI https://drupal.example.com
  …

# Example with docker-compose
Host drupal.example.com
  …
  DRUPAL_DRUSH_DRUSH docker-compose --env-file .env.docker.local --file docker-compose.server.yml exec phpfpm vendor/bin/drush
  # The directory to change to before running the drush command
  DRUPAL_DRUSH_CWD /data/www/drupal/htdocs
  # Drush root inside docker container
  DRUPAL_DRUSH_ROOT /app
  …

Host symfony.example.com
  …
  SYMFONY_CONSOLE_ROOT /data/www/symfony/htdocs
  …

# Example with docker-compose
  …
  SYMFONY_CONSOLE_ROOT /data/www/symfony/htdocs
  SYMFONY_CONSOLE_CONSOLE itkdev-docker-compose-server exec phpfpm bin/console

```

then running `remote-command drupal:drush drupal.example.com` will be equivalent to running `ssh -t drupal.example.com drush --root=/data/www/drupal/htdocs --uri=https://drupal.example.com`.

### Shortcuts

[](#shortcuts)

- `remote-drupal-drush` is a shortcut for `remote-command drupal:drush`
- `remote-symfony-console` is a shortcut for `remote-command symfony:console`

Adding the commands to your `PATH`
----------------------------------

[](#adding-the-commands-to-your-path)

If you're using the `bash` shell, run

```
echo 'export PATH="'$(git rev-parse --show-toplevel)/bin:$PATH"' >> ~/.bashrc
```

to add the commands to your `PATH`. If you're running `zsh`, run

```
echo 'export PATH="'$(git rev-parse --show-toplevel)/bin:$PATH"' >> ~/.zshrc
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~112 days

Recently: every ~173 days

Total

13

Last Release

928d ago

PHP version history (2 changes)1.0.0PHP ^7.3

1.5.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d838759fdace714b1c00ca64212935cb06568a6d641169301aa2ed05eed16f9?d=identicon)[rimi-itk](/maintainers/rimi-itk)

---

Top Contributors

[![rimi-itk](https://avatars.githubusercontent.com/u/11267554?v=4)](https://github.com/rimi-itk "rimi-itk (26 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rimi-itk-remote-commands/health.svg)

```
[![Health](https://phpackages.com/badges/rimi-itk-remote-commands/health.svg)](https://phpackages.com/packages/rimi-itk-remote-commands)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k68](/packages/humbug-box)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
