# mc license info

LLMS 索引： [llms.txt](/zh/llms.txt)

---

<a id="mc-license-info"></a>

<a id="command-mc.license.info"></a>

## 描述 {#id2}

[`mc license info`](#command-mc.license.info) 命令用于显示 MinIO 部署的许可证状态信息。 具体来说，用于确认该部署使用的是 AGPLv3 开源许可证，还是 [MinIO Commercial License](https://min.io/product/subnet?ref=docs)。

你必须在 MinIO [MinIO SUBNET](https://min.io/pricing?jmp=docs) 中注册部署，才能激活商业许可证。

例如，对于未注册的部署，该命令会返回以下信息：

```shell
You are using GNU AFFERO GENERAL PUBLIC LICENSE Version 3 (https://www.gnu.org/licenses/agpl-3.0.txt)

If you are building proprietary applications, you may want to choose the commercial license
included as part of the Standard and Enterprise subscription plans. (https://min.io/signup?ref=mc)

Applications must otherwise comply with all the GNU AGPLv3 License & Trademark obligations.
```

使用 [`mc license register`](/zh/reference/minio-mc/mc-license-register/#command-mc.license.register) 将你的部署关联到 SUBNET 账户。 如果你尚未注册 SUBNET，请参阅 [Registration](https://min.io/pricing?ref=docs) 页面。

## 示例 {#id3}

### 显示别名为 `minio1` 的部署当前许可证 {#minio1}

```shell
mc license info minio1
```

如果部署使用的是已过期的 MinIO Commercial License，该命令会输出错误信息。

## 语法 {#id4}

该命令的语法如下：

```shell
mc [GLOBALFLAGS] license info       \
                         ALIAS      \
                         [--airgap]
```

### 参数 {#id5}

##### `ALIAS` {#mc.license.info.ALIAS}

*mc-cmd*

*Required*

MinIO 部署的 [alias](/zh/reference/minio-mc/mc-alias-set/#alias)。

##### `--airgap` {#mc.license.info.-airgap}

*mc-cmd*

*Optional*

在运行 [minio client](/zh/reference/minio-mc/#minio-client) 的客户端机器无法通过网络访问 SUBNET 的环境中使用（例如 airgapped、受防火墙限制或类似配置），以显示如何将部署注册到 SUBNET 的说明。

如果部署处于 airgapped 环境，但本地设备具备网络访问能力，则无需使用 `--airgap` 标志。

### 全局选项 {#id6}

此命令支持 [全局标志](/zh/reference/minio-mc/#minio-mc-global-options) 中的任意选项。
