PHPackages                             terminus-plugin-project/terminus-code-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. terminus-plugin-project/terminus-code-plugin

ActiveTerminus-plugin[Utility &amp; Helpers](/categories/utility)

terminus-plugin-project/terminus-code-plugin
============================================

Code - A Terminus plugin to clone the code from any available Pantheon site environment to your local system.

2.1.0(3y ago)31231[1 issues](https://github.com/terminus-plugin-project/terminus-code-plugin/issues)MITPHPPHP ^5.5 || ^7.0 || ^8.0

Since Jun 20Pushed 3y ago2 watchersCompare

[ Source](https://github.com/terminus-plugin-project/terminus-code-plugin)[ Packagist](https://packagist.org/packages/terminus-plugin-project/terminus-code-plugin)[ RSS](/packages/terminus-plugin-project-terminus-code-plugin/feed)WikiDiscussions 2.x Synced 1w ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Terminus Code Plugin
====================

[](#terminus-code-plugin)

Version 2.x

[![CircleCI](https://camo.githubusercontent.com/f8e58df156891b773d0678d3226848f0e2b7a934500b5615d6c1819bb1649ddf/68747470733a2f2f636972636c6563692e636f6d2f67682f7465726d696e75732d706c7567696e2d70726f6a6563742f7465726d696e75732d636f64652d706c7567696e2e7376673f7374796c653d736869656c64)](https://circleci.com/gh/terminus-plugin-project/terminus-code-plugin)[![Terminus v2.x Compatible](https://camo.githubusercontent.com/4cf69d5d2946c607d2f77591c24ad1f265f4d8d0b492255a97a7e5a03730aa7a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7465726d696e75732d76322e782d677265656e2e737667)](https://github.com/terminus-plugin-project/terminus-code-plugin/tree/2.x)[![Terminus v1.x Compatible](https://camo.githubusercontent.com/9ea8fb0893368c0b24f172cc2df676fa4bb7246d14c0377b7924a6918065be26/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7465726d696e75732d76312e782d677265656e2e737667)](https://github.com/terminus-plugin-project/terminus-code-plugin/tree/1.x)[![Terminus v0.x Compatible](https://camo.githubusercontent.com/275e0fbd20cfb6f5eeb401daf333848da99283a3904b6b8482de0d62e0d04f62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7465726d696e75732d76302e782d677265656e2e737667)](https://github.com/terminus-plugin-project/terminus-code-plugin/tree/0.x)

Terminus plugin to clone the code from any available [Pantheon](https://www.pantheon.io) site environment to your local system.

Usage:
------

[](#usage)

```
$ terminus site:env:code | env:code | code .

```

Example:
--------

[](#example)

Clone the code from the my-site development environment.

```
terminus code my-site.dev

```

Learn more about [Terminus](https://pantheon.io/docs/terminus/) and [Terminus Plugins](https://pantheon.io/docs/terminus/plugins/).

Installation:
-------------

[](#installation)

To install this plugin using Terminus 3:

```
terminus self:plugin:install terminus-plugin-project/terminus-code-plugin

```

On older versions of Terminus:

```
mkdir -p ~/.terminus/plugins
composer create-project --no-dev -d ~/.terminus/plugins terminus-plugin-project/terminus-code-plugin

```

For help installing, see [Manage Plugins](https://pantheon.io/docs/terminus/plugins/).

```
mkdir -p ~/.terminus/plugins
composer create-project -d ~/.terminus/plugins terminus-plugin-project/terminus-code-plugin:~2

```

Configuration:
--------------

[](#configuration)

This plugin requires no configuration to use.

Testing:
--------

[](#testing)

```
export TERMINUS_SITE=my-site
cd ~/.terminus/plugins/terminus-code-plugin
composer install
composer test

```

Help:
-----

[](#help)

Run `terminus help code` for help.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~425 days

Total

5

Last Release

1190d ago

Major Versions

1.x-dev → 2.0.02019-02-22

PHP version history (2 changes)1.0.0PHP ^5.5 || ^7.0

2.1.0PHP ^5.5 || ^7.0 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24785343?v=4)[Terminus Plugin Project](/maintainers/terminus-plugin-project)[@terminus-plugin-project](https://github.com/terminus-plugin-project)

---

Top Contributors

[![uberhacker](https://avatars.githubusercontent.com/u/387945?v=4)](https://github.com/uberhacker "uberhacker (5 commits)")[![alisonjo315](https://avatars.githubusercontent.com/u/2660348?v=4)](https://github.com/alisonjo315 "alisonjo315 (2 commits)")

---

Tags

codecomposerpantheonpluginterminusterminus-pluginplugincodepantheonterminus

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/terminus-plugin-project-terminus-code-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/terminus-plugin-project-terminus-code-plugin/health.svg)](https://phpackages.com/packages/terminus-plugin-project-terminus-code-plugin)
```

###  Alternatives

[endroid/qr-code

Endroid QR Code

4.8k67.6M348](/packages/endroid-qr-code)[laminas/laminas-code

Extensions to the PHP Reflection API, static code scanning, and code generation

1.9k185.4M172](/packages/laminas-laminas-code)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k64.2M576](/packages/nette-php-generator)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[scrivo/highlight.php

Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js

71140.3M82](/packages/scrivo-highlightphp)

PHPackages © 2026

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