PHPackages                             panlatent/site-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. panlatent/site-cli

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

panlatent/site-cli
==================

A command-line tool that help you manage Nginx local development configuration

1.2.0(8y ago)4123MITPHPPHP &gt;=5.5

Since Apr 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/panlatent/site-cli)[ Packagist](https://packagist.org/packages/panlatent/site-cli)[ RSS](/packages/panlatent-site-cli/feed)WikiDiscussions master Synced 2mo ago

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

Site CLI
========

[](#site-cli)

[![Build Status](https://camo.githubusercontent.com/90ec783a68c82fac50783e9b83be850e4966acf8fbf2fb26dd680ee0ddf4ed41/68747470733a2f2f7472617669732d63692e6f72672f70616e6c6174656e742f736974652d636c692e737667)](https://travis-ci.org/panlatent/site-cli)[![Latest Stable Version](https://camo.githubusercontent.com/99eb74e5f11d4f4768bc2b401e8545dc09bb2fa778da3ba94ed3aa77a47a75d3/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f736974652d636c692f762f737461626c652e737667)](https://packagist.org/packages/panlatent/site-cli)[![Total Downloads](https://camo.githubusercontent.com/5459f7640ec6b092c3aa89b00501f693bb83fbafc41b6d513591eb034e5077b3/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f736974652d636c692f646f776e6c6f6164732e737667)](https://packagist.org/packages/panlatent/site-cli)[![Latest Unstable Version](https://camo.githubusercontent.com/38147dcabef2f29afee53583d6df5633ef2995067f8091888530925deb42056c/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f736974652d636c692f762f756e737461626c652e737667)](https://packagist.org/packages/panlatent/site-cli)[![License](https://camo.githubusercontent.com/7094603ffa7c9c3008346f6b0eafbc21691f31381d1ba953c85501fc77fa720a/68747470733a2f2f706f7365722e707567782e6f72672f70616e6c6174656e742f736974652d636c692f6c6963656e73652e737667)](https://packagist.org/packages/panlatent/site-cli)

A command-line tool that help you more easily use Nginx.

What's This
-----------

[](#whats-this)

Site CLI is a command-line tool that helps you manage and switch Nginx local development environment configuration files.

This tool makes me lazy in the development, It's more than just `cd && ls`, `ln -s`, `nginx -s` , I enjoy it.

Features
--------

[](#features)

- **Auto-Completion** - Supports all commands, arguments and options auto-completion.
- **Grouping** - Uses directories to group site configuration files. Support the operation of any item and ane group.
- **List** - Use `ls` command quick see site list and information.
- **Switch** - Use `enable/disable` command can quick switching site or group, it support service auto reload.
- **Service** - Help you use the same command control service in different environments.
- **Alfred3 Workflow Support** - Provide workflow helpe you quick search and switch site.

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

[](#installation)

Download Phar file:

- Phar Releases

```
$ mv site-cli.phar /usr/local/bin/site
$ chmod +x /usr/local/bin/site
```

Download the library using composer:

```
$ composer require panlatent/site-cli
```

```
$ ln -s ./bin/site-cli /usr/local/bin/site
$ chmod +x /usr/local/bin/site
```

Configuration
-------------

[](#configuration)

### Custom Configuration

[](#custom-configuration)

The default configuration provided by Site Cli works very well, but you can still customize it.

Run `init` command will create a .site-cli.yml file to your home directory. Edit this file:

```
site:
  available: ~/etc/nginx/sites-available
  enabled: ~/etc/nginx/sites-enabled
```

### Add Completion

[](#add-completion)

Run `init --dump-completion` will make a completion script contents and print to the terminal. Use `-o, --output[=OUTPUT]` will write to a file. Add shell complete in `~/.zshrc` or `~/.bash_profile`: `source ~/.site-cli.sh`

A example:

```
$ site init --dump-completion -o ~/.site-cli.bash
$ echo "source .site-cli.bash" >> ~/.zshrc
```

Usage
-----

[](#usage)

```
$ site [command] [argment]
```

Command List:

- **clear** - Clear unless symbolic links
- **config** - Get and set site-cli options
- **create** - Create a new site
- **disable** - Disable a site or a group sites
- **edit** - Edit site configuration using editor
- **enable** - Enable a site or a group sites
- **help** - Displays help for a command
- **init** - Init site-cli settings
- **ls** - List groups and sites contents
- **service** - Control site service process

Optional
--------

[](#optional)

### Add nginx.conf vim syntax:

[](#add-nginxconf-vim-syntax)

Download nginx.vim [nginx vim](http://www.vim.org/scripts/script.php?script_id=1886)

```
$ mv nginx.vim ~/.vim/syntax/
$ vi ~/.vim/filetype.vim
```

Add `au BufRead,BufNewFile your_nginx_path/* set ft=nginx`

License
-------

[](#license)

The Site CLI is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~15 days

Total

8

Last Release

3219d ago

### Community

Maintainers

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

---

Top Contributors

[![panlatent](https://avatars.githubusercontent.com/u/4393268?v=4)](https://github.com/panlatent "panlatent (119 commits)")

---

Tags

configurationnginxnginx-toolsphp-clisites

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/panlatent-site-cli/health.svg)

```
[![Health](https://phpackages.com/badges/panlatent-site-cli/health.svg)](https://phpackages.com/packages/panlatent-site-cli)
```

###  Alternatives

[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k57.4M685](/packages/drush-drush)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[humbug/php-scoper

Prefixes all PHP namespaces in a file or directory.

7963.0M35](/packages/humbug-php-scoper)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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