2022-11-11 19:28:35 +08:00
|
|
|
# Energy 命令行工具
|
2022-11-28 21:59:43 +08:00
|
|
|
## 自动配置环境
|
2022-11-11 16:09:35 +08:00
|
|
|
## 使用方式
|
2022-11-11 18:47:27 +08:00
|
|
|
> 一、使用预编译
|
2022-11-28 21:59:43 +08:00
|
|
|
>
|
2022-11-11 18:47:27 +08:00
|
|
|
> 下载地址
|
2022-11-18 13:58:40 +08:00
|
|
|
>> [energy_cmd_windows32](http://energy.yanghy.cn/download/energy_cmd_windows32.zip)
|
|
|
|
>>
|
2022-11-11 18:47:27 +08:00
|
|
|
>> [energy_cmd_windows64](http://energy.yanghy.cn/download/energy_cmd_windows64.zip)
|
|
|
|
>>
|
|
|
|
>> [energy_cmd_macosx64](http://energy.yanghy.cn/download/energy_cmd_macosx64.zip)
|
|
|
|
>>
|
|
|
|
>> [energy_cmd_linux64](http://energy.yanghy.cn/download/energy_cmd_linux64.zip)
|
2022-11-11 16:09:35 +08:00
|
|
|
>>
|
|
|
|
>> 配置到环境变量 或 直接在命令行中执行
|
|
|
|
>
|
|
|
|
> 二、自行编译
|
|
|
|
>
|
2022-11-11 18:47:27 +08:00
|
|
|
> 需要安装[Golang](https://golang.google.cn/dl/)环境
|
2022-11-11 16:09:35 +08:00
|
|
|
>>go get -u github.com/energye/energy
|
|
|
|
>>
|
|
|
|
>> 进入 cmd/energy 目录
|
|
|
|
>>
|
|
|
|
>> 执行命令 "go install" 安装命令行工具
|
|
|
|
>>
|
|
|
|
>> go install
|
|
|
|
>>
|
|
|
|
>
|
|
|
|
> 三、命令参数
|
|
|
|
>
|
|
|
|
>> energy install [path] [version]
|
|
|
|
>>
|
|
|
|
|
|
|
|
| 名称 | 描述 |
|
|
|
|
|---------|-----------------------------------------|
|
|
|
|
| install | 安装energy框架, 需要连接互联网, 自动下载CEF和Energy框架环境 |
|
2022-11-11 17:06:22 +08:00
|
|
|
| name | 可选参数, 目录名称, 默认EnergyFramework |
|
|
|
|
| path | 可选参数, 安装目录, 默认当前目录生成[name]文件夹 |
|
|
|
|
| version | 可选参数, 版本号v1.1.0, 默认最新版本latest |
|
2022-11-11 16:09:35 +08:00
|
|
|
|
|
|
|
>示例
|
|
|
|
>> 1. energy install
|
|
|
|
>>
|
|
|
|
>> 2. energy install --path=/app/energyFramework --version=v1.1.0
|
2022-11-28 21:59:43 +08:00
|
|
|
>>
|
2022-11-11 16:09:35 +08:00
|
|
|
----
|
|
|
|
### 授权
|
2022-11-11 16:12:16 +08:00
|
|
|
### [![License GPL 3.0](https://img.shields.io/badge/License%20GPL3.0-green)](https://opensource.org/licenses/GPL-3.0)
|