PHPackages                             aaronbauman/terminus-config-export - 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. aaronbauman/terminus-config-export

ActiveTerminus-plugin

aaronbauman/terminus-config-export
==================================

Terminus plugin for syncing Drupal site configuration

1.5(2y ago)45264[2 issues](https://github.com/aaronbauman/terminus-config-export/issues)MITPHP

Since Feb 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/aaronbauman/terminus-config-export)[ Packagist](https://packagist.org/packages/aaronbauman/terminus-config-export)[ Docs](https://github.com/aaronbauman/terminus-config-export)[ RSS](/packages/aaronbauman-terminus-config-export/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (8)Used By (0)

terminus-config-export
======================

[](#terminus-config-export)

`cex`
-----

[](#cex)

Remotely push active config into version control

### Why do we need this?

[](#why-do-we-need-this)

This command wraps the sub-commands for a typical on-server config sync -- switching to SFTP, dumping, commiting, and switching back to git -- in a single command. The best part is that each subcommand waits for the previous command to finish, to avoid convergence problems.

### Usage

[](#usage)

`terminus cex site.env [--message="Optional commit message"]`

`cexr`
------

[](#cexr)

Export active config from a remote environment to local

### Why do we need this?

[](#whydo-we-need-this)

For a CI site, we can't do on-server commits - we need to send them to a completely different repository. Drush offers a way to export active config within the same site, or to sync staged config between two sites. The missing piece is exporting active config from one environment to another, especially a local working directory which may not be bootstrappable. This command makes that bridge, and addresses the common use case of more easily fetching "Config from prod".

*NB: be sure to use the `--destination` flag if you're not in a working drupal environment*

`terminus cexr site.env	[--destination="Optional local destination"]`

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

[](#installation)

Depending on which version of Terminus you have installed, install the plugin by using one of the following commands. You can see which version of Terminus you're using by executing `terminus --version`.

### Terminus 2

[](#terminus-2)

```
composer create-project --no-dev -d ~/.terminus/plugins aaronbauman/terminus-config-export

```

### Terminus 3

[](#terminus-3)

```
terminus self:plugin:install aaronbauman/terminus-config-export

```

Under the hood
--------------

[](#under-the-hood)

### What happens when I run `cex`?

[](#what-happens-when-i-run-cex)

Together with Drush, the Terminus plugin will:

- Check for difference between active and staged config (`drush cst`).
- If there's a difference, put the target environment into SFTP mode.
- Run `drush cex` remotely to export config.
- Commit the config changes to VCS.
- Put the site back into git mode.

### What happens when I run `cexr`?

[](#what-happens-when-i-run-cexr)

- Create a private directory in the remote environment (given by `--remote-destination` option)
- Run `drush cex` remotely to export config to the given directory.
- `rsync` the config to the local environment, as determined by `--destination` option

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance52

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84% 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 ~216 days

Recently: every ~244 days

Total

6

Last Release

815d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da2abce67885279bb4a585e829ec8aae2746a6e6b1fee64356848a7748e74054?d=identicon)[aaronbauman](/maintainers/aaronbauman)

---

Top Contributors

[![aaronbauman](https://avatars.githubusercontent.com/u/508451?v=4)](https://github.com/aaronbauman "aaronbauman (21 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (3 commits)")[![alisonjo315](https://avatars.githubusercontent.com/u/2660348?v=4)](https://github.com/alisonjo315 "alisonjo315 (1 commits)")

### Embed Badge

![Health badge](/badges/aaronbauman-terminus-config-export/health.svg)

```
[![Health](https://phpackages.com/badges/aaronbauman-terminus-config-export/health.svg)](https://phpackages.com/packages/aaronbauman-terminus-config-export)
```

PHPackages © 2026

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