https://github.com/vordgi/nginx-to-cli
A CLI for conveniently managing nginx with familiar commands
https://github.com/vordgi/nginx-to-cli
cli nginx
Last synced: over 1 year ago
JSON representation
A CLI for conveniently managing nginx with familiar commands
- Host: GitHub
- URL: https://github.com/vordgi/nginx-to-cli
- Owner: vordgi
- License: mit
- Created: 2024-03-30T10:39:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T13:44:51.000Z (about 2 years ago)
- Last Synced: 2025-02-02T01:43:29.130Z (over 1 year ago)
- Topics: cli, nginx
- Language: TypeScript
- Homepage: https://npmjs.com/package/nginx-to-cli
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nginx-to-cli
A CLI for conveniently managing nginx with familiar commands (*currently only on Windows*)
## Installation
```bash
npm i nginx-to-cli -g
```
Then you need to configure the utility by specifying the absolute path to the installed nginx:
```bash
ng c
```
## Usage
### Start nginx
```bash
ng start
```
### Check nginx status
```bash
ng status
```
### Stop nginx
```bash
ng stop
```
### Restart nginx
```bash
ng restart
```
### Run nginx command
In most cases, the above commands will be sufficient, but in some cases, it may be necessary to run specific nginx commands.
This can be done using the following command:
```bash
ng root
```
For example:
```bash
ng root -s quit
ng root -v
```
## License
[MIT](https://github.com/vordgi/nginx-to-cli/blob/main/LICENSE)