
# ccictl config set-context
#### 操作背景
在 cliconfig 中设置上下文条目。
指定已存在的属性名称将把新字段值与现有值合并。
```
ccictl config set-context [NAME | --current] [--cluster=cluster_nickname] [--user=user_nickname] [--namespace=namespace]
```
#### 示例
```
# 在 gce 上下文条目上设置用户字段，而不影响其他值
ccictl config set-context gce --user=cluster-admin
```
#### 选项
```
--cluster string
```
cliconfig 中上下文条目的集群。
```
--current
```
修改当前上下文。
```
-h, --help
```
关于 set-context 的帮助信息。
```
--namespace string
```
cliconfig 中上下文条目的命名空间。
```
--user string
```
cliconfig 中上下文条目的用户。
**ccictl选项亦可作为子命令的选项，列表如下：**
[父命令ccictl选项列表](https://support.huaweicloud.com/devg-cci2/ccictl_01.html#ccictl_01__section188081236162119)
