
# 命令总览
#### 基本概念
- workflow（模板）。即静态的模板内容。包括模板本身，以及对应的输入参数。
- execution（任务）。即模板对应的任务。基于一组输入参数，对某一workflow 执行运行操作，得到的一组有序执行的任务。
- job（子任务）。即execution包含哪些 job，对应kubernetes的pods对象，可以通过kubectl get pods查看集群正在执行中的pods。
- repjob（并发子任务）。即并发行执行一组job，这些job大部分参数相同，只有少数不一样，repjob可以将这样的多个job 归并成一个。
- wdl（Workflow Description Language，流程描述语言）。Cromwell引擎使用的流程描述语言。
 
#### 注意事项
在使用命令行之前，请确保已配置AK/SK并赋予其可执行权限。
#### 命令列表
表1命令列表 
| 命令格式                                                                                   | 功能描述                                                                |
|:---|:---|
| [gcs version](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0003.html)          | 获取命令行工具相关版本信息。                                                      |
| [gcs config add](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0002.html)       | 输入 AK/SK/region名称并选择计算集群，初始化命令行工具。该命令将信息储存在 \~/.gcs/config.ini 文件中。 |
| [gcs config list](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0004.html)      | 显示存储在 \~/.gcs/config.ini 里面的 AK/SK/region 等信息。                      |
| [gcs get kubectl](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0014.html)      | 获取kubernetes 命令行工具kubectl 并根据对应集群进行配置。                              |
| [gcs get environment](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0005.html)  | 获取租户下的环境信息，包括集群名称、状态以及内存、CPU使用情况。                                   |
| [gcs set env](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0020.html)          | 设置默认env，设置之后，后续的任务将默认投到改环境上。                                        |
| [gcs get sfs](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0019.html)          | 获取当前设置环境对应的集群所关联的全部sfs pvc name。                                    |
| [gcs set sfs](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0022.html)          | 设置环境默认使用的sfs pvc。                                                   |
| [gcs get obscli](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0015.html)       | 获取obs client 命令行工具并进行相关配置。                                          |
| [gcs obs upload](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0006.html)       | 将本地文件上传到集群绑定的对象存储桶中。                                                |
| [gcs get workflow](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0012.html)     | 查看全部的上传模板（YAML） ID、名称、使用者、最近上传时间。也可以根据 ID指定显示特定模板的信息。               |
| [gcs create workflow](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0010.html)  | 上传workflow文件。                                                       |
| [gcs del workflow](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0016.html)     | 删除workflow模板。注意：执行前需要删除引用该模板的所有任务（execution）。                       |
| [gcs update workflow](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0023.html)  | 更新流程的相关信息。                                                          |
| [gcs sub workflow](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0009.html)     | 在集群中，根据模板内容，创建execution。                                            |
| [gcs get execution](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0013.html)    | 查询全部的任务信息，也可以根据ID指定显示特定任务信息。                                        |
| [gcs create execution](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0011.html) | 根据workflow模板创建execution任务。                                          |
| [gcs del execution](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0017.html)    | 删除某一任务。执行后需要等待半分钟，在此期间，需要保证 kubectl get pods中， pods 全部删除。           |
| [gcs set execution](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0021.html)    | 设置execution启停状态。                                                    |
| [gcs sub job](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0007.html)          | 在集群中，执行单一 shell 脚本。                                                 |
| [gcs sub repjob](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0008.html)       | 在集群中，并发执行 shell 脚本中的逐行命令，脚本中每一行命令并发创建一个job。                         |
| [gcs get tool](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0024.html)         | 查询租户下的所有工具信息。                                                       |
| [gcs sub wdl](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0025.html)          | 提交单个WDL流程到Cromwell引擎。                                               |
| [gcs get wdl](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0026.html)          | 查询提交的wdl流程执行结果。                                                     |
| [gcs set wdl](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0027.html)          | 终止指定的WDL流程。                                                         |
| [gcs get fr](https://support.huaweicloud.com/clir-gcs/gcs_clir_04_0028.html)           | 获取当前用户的CCI套餐包请用情况                                                   |
   
