ngxpkg Build Status

A cli tool for nginx


Install go before use ngxpkg, or you can download release version. How to install go please look at

go get

mv $GOPATH/bin/ngxpkg $GOPATH/bin/ngc

or you can build it for other system by use

go get

cd $GOPATH/src/


Default Env

Create new sites with domains, …

ngc new

it will create conf files:

and create sites:


please replace the files with yours after create new site.

Renew ssl with domains, …

ngc renew

it will renew all ssl certificates list on sites conf file when it’s valid days less then NGX_ALLOW_RENEW_DAYS


Copyright (C) 2017 ZhiQiang Huang, All Rights Reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see