
# ccictl config view
#### 操作背景
显示合并的 cliconfig 配置或指定的 cliconfig 文件。
可以使用 --output jsonpath={...} 通过 jsonpath 表达式提取特定值。
```
ccictl config view [flags]
```
#### 示例
```
# 显示合并的 cliconfig 设置
ccictl config view
# 显示合并的 cliconfig 设置、原始证书数据和公开的密钥
ccictl config view --raw
# 获取 e2e 用户的密码
ccictl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
```
#### 选项
```
--allow-missing-template-keys     默认值：true
```
如果为 true，在模板中字段或映射键缺失时忽略模板中的错误。 仅适用于 golang 和 jsonpath 输出格式。
```
--flatten
```
将生成的 cliconfig 文件扁平化为自包含的输出（对于创建可移植的 cliconfig 文件很有用）。
```
-h, --help
```
关于 view 的帮助信息。
```
--merge tristate[=true]     默认值：true
```
合并 cliconfig 文件的完整层次结构数据。
```
--minify
```
从输出中删除当前上下文未使用的所有信息。
```
-o, --output string     默认值："yaml"
```
输出格式。可选值为： json、yaml、name、go-template、go-template-file、template、templatefile、jsonpath、jsonpath-as-json、jsonpath-file。
```
--raw string
```
显示原始字节数据和敏感数据。
```
--template string
```
当 -o=go-template、-o=go-template-file 时使用的模板字符串或模板文件路径。 模板格式为 golang 模板 \[http://golang.org/pkg/text/template/#pkg-overview\]。
**ccictl选项亦可作为子命令的选项，列表如下：**
[父命令ccictl选项列表](https://support.huaweicloud.com/devg-cci2/ccictl_01.html#ccictl_01__section188081236162119)
