la-moore/nginx-cli
Composer 安装命令:
composer require la-moore/nginx-cli
包简介
Nginx CLI Tool
关键字:
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-22