A Very Simple OpenResty Package Manager
Open a PowerShell terminal (version 5.1 or later) and run:
# Optional: Needed to run a remote script the first time
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm https://raw.githubusercontent.com/killsen/openresty-orpm/main/scripts/install_orpm.ps1 | iex
orpm version # 版本 v2.6.1
orpm homepage # https://github.com/killsen/openresty-orpm
orpm demo # 创建演示项目
orpm create # 创建项目
orpm init # 创建 .orpmrc 配置文件
orpm start # 启动 nginx 服务
orpm stop # 停止 nginx 服务
orpm build # 打包 nginx app
orpm update # 升级 orpm
orpm install # 安装 libs
orpm rocks # 执行 luarocks
orpm install killsen/openresty-lua-types -d # 开发时依赖
orpm install killsen/openresty-appx
orpm install killsen/openresty-clib
orpm install bungle/lua-resty-template # 安装最新版本
orpm install bungle/lua-resty-template@v2.0 # 安装指定版本
orpm install bungle/lua-resty-template@master # 仓库主分支版