

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 CloudHSM CLI 退出 HSM
<a name="cloudhsm_cli-logout"></a>

使用 CloudHSM CLI 中的**logout**命令注销集群中的每个硬件安全模块 (HSM)。 AWS CloudHSM 

## 用户类型
<a name="chsm-cli-logout-userType"></a>

以下用户均可运行此命令。
+ Admin
+ 加密用户 (CU)

## 语法
<a name="chsm-cli-logout-syntax"></a>

```
aws-cloudhsm > help logout
Logout of your cluster

USAGE:
    logout

OPTIONS:
        --cluster-id <CLUSTER_ID> Unique Id to choose which of the clusters in the config file to run the operation against. If not provided, will fall back to the value provided when interactive mode was started, or error
    -h, --help                    Print help information
    -V, --version                 Print version information
```

## 示例
<a name="chsm-cli-logout-example"></a>

**Example**  
此命令将您从集群中的所有 HSMs 内容中注销。  

```
aws-cloudhsm > logout
{
  "error_code": 0,
  "data": "Logout successful"
}
```

## 相关主题
<a name="logout-seeAlso"></a>
+ [CloudHSM CLI 入门](cloudhsm_cli-getting-started.md)
+ [激活集群](activate-cluster.md)