PHPackages                             pantheon-systems/terminus-site-clone-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. [CLI &amp; Console](/categories/cli)
4. /
5. pantheon-systems/terminus-site-clone-plugin

ActiveTerminus-plugin[CLI &amp; Console](/categories/cli)

pantheon-systems/terminus-site-clone-plugin
===========================================

Site Clone - A Terminus plugin that adds command(s) to facilitate cloning sites on Pantheon.

2.1.1(9mo ago)2368.2k↓15.6%12[6 PRs](https://github.com/pantheon-systems/terminus-site-clone-plugin/pulls)MITPHPCI passing

Since May 22Pushed 2mo ago46 watchersCompare

[ Source](https://github.com/pantheon-systems/terminus-site-clone-plugin)[ Packagist](https://packagist.org/packages/pantheon-systems/terminus-site-clone-plugin)[ RSS](/packages/pantheon-systems-terminus-site-clone-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (19)Used By (0)

Terminus Site Clone
===================

[](#terminus-site-clone)

Site Clone - A [Terminus](http://github.com/pantheon-systems/terminus) plugin that adds the `site:clone` command to facilitate cloning sites on [Pantheon](https://pantheon.io/).

[![Actively Maintained](https://camo.githubusercontent.com/2ae5ff81f271fb028d720adee6b3595770166f3707a4705a4a2a3b71c332b249/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50616e7468656f6e2d4163746976656c795f4d61696e7461696e65642d79656c6c6f773f6c6f676f3d70616e7468656f6e26636f6c6f723d464644433238)](https://pantheon.io/docs/oss-support-levels#actively-maintained-support)

Disclaimer
----------

[](#disclaimer)

While this script has worked well for us your mileage may vary due to local machine configuration. If you are having issues with running this plugin locally try using [this Dockerfile](https://github.com/pantheon-systems/docker-build-tools-ci/blob/4.x/Dockerfile), which has all the tools needed pre installed.

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

[](#installation)

### Installing via Terminus 3

[](#installing-via-terminus-3)

`terminus self:plugin:install pantheon-systems/terminus-site-clone-plugin`

### Installing with Composer (deprecated method using Terminus 2)

[](#installing-with-composer-deprecated-method-using-terminus-2)

`composer -n create-project pantheon-systems/terminus-site-clone-plugin:^2 ~/.terminus/plugins/terminus-site-clone-plugin`

### Manual installation

[](#manual-installation)

Clone this project into your Terminus plugins directory found at `$HOME/.terminus/plugins`. If the `$HOME/.terminus/plugins` directory does not exists you can safely create it. You will also need to run `composer install` in the plugin directory after cloning it. See [installing Terminus plugin](https://pantheon.io/docs/terminus/plugins/#install-plugins) for details.

Requirements
------------

[](#requirements)

- [Terminus](https://github.com/pantheon-systems/terminus) `2.0` or greater
- [git command line](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) `1.7.10` or greater

Usage
-----

[](#usage)

`terminus site:clone . .` where `` and `` are site UUID or machine name and `` is a valid environment (dev or multidev).

Code cannot be cloned to or from test and live environments as work must go through [the Pantheon workflow](https://pantheon.io/docs/pantheon-workflow/). You can, however, use `--no-code` to clone the files and database to or from a test or live environment. Note that if you use `--no-code`, the PHP version won't be set to the one from the site you are cloning from.

You can also pass the argument(s) `--no-database`, `--no-files` and/or `--no-code` to skip cloning one or more items. You cannot, however, skip all three as there would be nothing left to clone.

By default, backups are made on both the source and destination environment before cloning. Use `--no-source-backup` and/or `--no-destination-backup` to omit one of both backups.

Notes
-----

[](#notes)

- Files and database backups over 500MBs will not work\*\* due to Pantheon import file size limits. If your files or database are over 500MB they will need to be [manually migrated](https://pantheon.io/docs/migrate-manual/).
- If you pass the `--no-source-backup` flag, the system will use the last taken backup as the source database.

Changelog
---------

[](#changelog)

### `2.0.0`

[](#200)

- Add support for Terminus `2.0`
- Remove support for Terminus `1.x`
- Separate options for backing up source and destination
- Use `git clone --single-branch` to avoid downloading unnecessary history

### `1.0.0`

[](#100)

- Initial release

License
-------

[](#license)

MIT

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance75

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 52.9% 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 ~661 days

Total

5

Last Release

271d ago

Major Versions

1.x-dev → 2.0.02019-04-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/b34cc6bd882277b6c6dda19bf6631ae5c3a909fd667c826a15121642cdc051b2?d=identicon)[greg.1.anderson](/maintainers/greg.1.anderson)

![](https://www.gravatar.com/avatar/5a89f5f15357797cbd6ec7833a28626478ae3c0ceb5fa1faa8a26d0960584c65?d=identicon)[pantheon-systems](/maintainers/pantheon-systems)

---

Top Contributors

[![ataylorme](https://avatars.githubusercontent.com/u/2133004?v=4)](https://github.com/ataylorme "ataylorme (36 commits)")[![kporras07](https://avatars.githubusercontent.com/u/2217820?v=4)](https://github.com/kporras07 "kporras07 (11 commits)")[![namespacebrian](https://avatars.githubusercontent.com/u/87093053?v=4)](https://github.com/namespacebrian "namespacebrian (9 commits)")[![greg-1-anderson](https://avatars.githubusercontent.com/u/612191?v=4)](https://github.com/greg-1-anderson "greg-1-anderson (4 commits)")[![stovak](https://avatars.githubusercontent.com/u/119924?v=4)](https://github.com/stovak "stovak (2 commits)")[![TohaUA](https://avatars.githubusercontent.com/u/4780023?v=4)](https://github.com/TohaUA "TohaUA (2 commits)")[![stevector](https://avatars.githubusercontent.com/u/211029?v=4)](https://github.com/stevector "stevector (1 commits)")[![philoSurfer](https://avatars.githubusercontent.com/u/1044479?v=4)](https://github.com/philoSurfer "philoSurfer (1 commits)")[![EdwardAngert](https://avatars.githubusercontent.com/u/17991901?v=4)](https://github.com/EdwardAngert "EdwardAngert (1 commits)")[![ccharlton](https://avatars.githubusercontent.com/u/263843?v=4)](https://github.com/ccharlton "ccharlton (1 commits)")

### Embed Badge

![Health badge](/badges/pantheon-systems-terminus-site-clone-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/pantheon-systems-terminus-site-clone-plugin/health.svg)](https://phpackages.com/packages/pantheon-systems-terminus-site-clone-plugin)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

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

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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