PHPackages                             lastcallmedia/terminus-safe-deploy - 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. lastcallmedia/terminus-safe-deploy

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

lastcallmedia/terminus-safe-deploy
==================================

Terminus command to deploy after configuration has been checked.

1.0.1(3y ago)0453↓33.3%[1 issues](https://github.com/LastCallMedia/terminus-safe-deploy/issues)[1 PRs](https://github.com/LastCallMedia/terminus-safe-deploy/pulls)MITPHP

Since Jan 25Pushed 1y ago3 watchersCompare

[ Source](https://github.com/LastCallMedia/terminus-safe-deploy)[ Packagist](https://packagist.org/packages/lastcallmedia/terminus-safe-deploy)[ RSS](/packages/lastcallmedia-terminus-safe-deploy/feed)WikiDiscussions main Synced 1mo ago

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

Terminus Plugin LCM Deploy
==========================

[](#terminus-plugin-lcm-deploy)

Terminus Plugin LCM Deploy is brought to you by your friends at [Last Call Media](https://www.lastcallmedia.com), this plugin for deploying to Test and Live environments on Pantheon. This plugin differs from the `env:deploy` command because it first checks if there is overridden configuration and optionally stops the deployment if there is.

Usage
-----

[](#usage)

```
terminus safe-deploy:deploy

```

There are a number of options available for this command:

- `--force-deploy`: Deploy even if there are configuration overrides on the target environment.
- `--with-cim`: Run a configuration import after deployment
- `--with-updates`: Run database updates after deployment. Updates are run after config import, if that option is included.
- `--clear-env-caches`: Clear Pantheon environment cache after deploy
- `--with-backup`: Takes a backup prior to initiating the deployment
- `--slack-alert`: Adds ability to alert a channel in slack on the success/failure of deployment
- `--slack-url`: Specify a url to use for posting to slack
    - This functionality can also be achieved by setting a SLACK\_URL environment variable

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

[](#installation)

```
terminus self:plugin:install lastcallmedia/terminus-safe-deploy

```

Or you can clone it and install from local:

```
git clone https://github.com/LastCallMedia/terminus-safe-deploy.git SOME_DIRECTORY
terminus self:plugin:install SOME_DIRECTORY

```

Slack
-----

[](#slack)

This command can notify a Slack channel on the success/failure of a deployment. In order to do this, you must do two things:

- Use the `--slack-alert` flag when running the command.
- Have a `SLACK_URL` environment variable, or set the `--slack-url` parameter to the url that Slack provides for posting to your channel.

Docker
------

[](#docker)

A docker image with the plugin preinstalled can be found [here](https://hub.docker.com/repository/docker/lastcallmedia/terminus-safe-deploy/general). Whenever a new tag is pushed to the repository, a matching tag is pushed to docker hub.

Usage:

```
docker run lastcallmedia/terminus-safe-deploy:TAG terminus safe-deploy

```

### Docker in GitHub Actions

[](#docker-in-github-actions)

If using this image for your GitHub Actions you will need to copy the Terminus configuration to the `github` user's home directory. [See Example](https://github.com/LastCallMedia/github-actions/blob/1.0.0/.github/workflows/terminus-safe-deploy.yml#L79-L81).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.3% 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 ~1 days

Total

3

Last Release

1206d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/ca4449e93fbe4a6030150bf1b6fbf17dc8b37ba4e5dba5ea9f91b827b636639f?d=identicon)[lastcall-automation](/maintainers/lastcall-automation)

---

Top Contributors

[![jlandfried](https://avatars.githubusercontent.com/u/1078156?v=4)](https://github.com/jlandfried "jlandfried (26 commits)")[![aramgevorgyan86](https://avatars.githubusercontent.com/u/12749972?v=4)](https://github.com/aramgevorgyan86 "aramgevorgyan86 (10 commits)")[![sagar-lcm](https://avatars.githubusercontent.com/u/106957476?v=4)](https://github.com/sagar-lcm "sagar-lcm (1 commits)")

---

Tags

terminus-plugin

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/lastcallmedia-terminus-safe-deploy/health.svg)

```
[![Health](https://phpackages.com/badges/lastcallmedia-terminus-safe-deploy/health.svg)](https://phpackages.com/packages/lastcallmedia-terminus-safe-deploy)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[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)

PHPackages © 2026

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