PHPackages                             la-moore/nginx-cli - 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. la-moore/nginx-cli

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

la-moore/nginx-cli
==================

Nginx CLI Tool

00PHP

Since Nov 22Pushed 1y agoCompare

[ Source](https://github.com/la-moore/nginx-cli)[ Packagist](https://packagist.org/packages/la-moore/nginx-cli)[ RSS](/packages/la-moore-nginx-cli/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NginxCLI
========

[](#nginxcli)

🌴 Create and manage your **Nginx** configs from the command line.

Installing the NginxCLI
-----------------------

[](#installing-the-nginxcli)

```
composer global require la-moore/nginx-cli
```

Make sure to place Composer's system-wide vendor bin directory in your `$PATH` so the `nginx-cli` executable can be located by your system. If you don't know where your `$PATH` is, run this command to find out:

```
export PATH="$HOME/.composer/vendor/bin:$PATH"
```

Once installed, you should be able to run `nginx-cli {command}` from within any directory.

Updating the NginxCLI
---------------------

[](#updating-the-nginxcli)

```
composer global update la-moore/nginx-cli
```

Run this command to update the CLI tool to the most recent published version. If there's been a major version release, you may need to run `require` instead of update.

Using the NginxCLI
------------------

[](#using-the-nginxcli)

### Create new domain config

[](#create-new-domain-config)

Create a new domain config with the `new` command:

```
nginx-cli new
```

### Enable domain config

[](#enable-domain-config)

Enable a domain config with the `enable` command:

```
nginx-cli enable
```

### Disable domain config

[](#disable-domain-config)

Disable a domain config with the `disable` command:

```
nginx-cli disable
```

### Nginx reload

[](#nginx-reload)

Reload Nginx with the `reload` command:

```
nginx-cli reload
```

### Nginx Start

[](#nginx-start)

Start Nginx with the `start` command:

```
nginx-cli start
```

### Nginx stop

[](#nginx-stop)

Stop Nginx with the `stop` command:

```
nginx-cli stop
```

### Nginx test config

[](#nginx-test-config)

Stop Nginx with the `test` command:

```
nginx-cli test
```

Run tests
---------

[](#run-tests)

Run tests with:

```
./vendor/bin/phpunit tests/NewCommandIntegrationTest.php
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/72086166f8f8952d33e9f56bc702098e2ef3715c4cd40a3372a3d86c5721d40c?d=identicon)[MoorLex](/maintainers/MoorLex)

---

Top Contributors

[![moorlex](https://avatars.githubusercontent.com/u/20378514?v=4)](https://github.com/moorlex "moorlex (10 commits)")

### Embed Badge

![Health badge](/badges/la-moore-nginx-cli/health.svg)

```
[![Health](https://phpackages.com/badges/la-moore-nginx-cli/health.svg)](https://phpackages.com/packages/la-moore-nginx-cli)
```

###  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)
