la-moore / nginx-cli
Nginx CLI Tool
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/la-moore/nginx-cli
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^6.5.5|^7.0.1
- laravel/prompts: ^0.1.3
- symfony/console: ^4.0|^5.0|^6.0
- symfony/filesystem: ^7.1
- symfony/process: ^4.2|^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is not auto-updated.
Last update: 2025-12-20 12:30:46 UTC
README
🌴 Create and manage your Nginx configs from the command line.
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
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
Create new domain config
Create a new domain config with the new command:
nginx-cli new <example.com>
Enable domain config
Enable a domain config with the enable command:
nginx-cli enable <example.com>
Disable domain config
Disable a domain config with the disable command:
nginx-cli disable <example.com>
Nginx reload
Reload Nginx with the reload command:
nginx-cli reload
Nginx Start
Start Nginx with the start command:
nginx-cli start
Nginx stop
Stop Nginx with the stop command:
nginx-cli stop
Nginx test config
Stop Nginx with the test command:
nginx-cli test
Run tests
Run tests with:
./vendor/bin/phpunit tests/NewCommandIntegrationTest.php