Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2025-08-27. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Uploading a new license to GitHub Enterprise Server

You can upload your license file for GitHub Enterprise to 你的 GitHub Enterprise Server 实例 to validate your application.

About license files for GitHub Enterprise

After you purchase or upgrade a license for GitHub Enterprise from GitHub 的销售团队, you must upload the new license file to 你的 GitHub Enterprise Server 实例 to unlock your new user licenses. For more information, see Combined GitHub Enterprise cloud and server use and 下载 GitHub Enterprise 许可证.

如果你想续订用户许可或将其添加至 GitHub Enterprise,或者对许可证有疑问,请联系 GitHub 的销售团队。 完成订单后,您可以立即下载新的许可文件。

Uploading your license from the 管理控制台

  1. Sign into 你的 GitHub Enterprise Server 实例 as a site administrator.

  2. 在 的右上角,单击你的个人资料照片,然后单击“企业设置”****。

    单击 GitHub Enterprise Server 上的个人资料照片时显示的下拉菜单的屏幕截图。 框出了“企业设置”选项。

  3. 在页面左侧的企业帐户边栏中,单击“ Settings”****。

  4. 设置”下,单击“许可证”。

  5. In the "User licenses" section, under "Quick links", click Update license.

    Screenshot of the "User licenses" section of the "License" page. A link, labeled "Update license", is outlined in dark orange.

  6. To upload your license, click License file, or drag your license file onto License file.

    Screenshot of the "License" page of the Management Console. A link, labeled "License file", is highlighted with an orange outline.

  7. Click Upload. Your license will be updated in the background. The change may take a few minutes before it is visible on your instance.

Uploading your license with the REST API

You can use the REST API to upload a license to 你的 GitHub Enterprise Server 实例. See 适用于管理 GitHub Enterprise Server 的 REST API 终结点.

Uploading a license with the GitHub CLI

You can import a license to 你的 GitHub Enterprise Server 实例 using the gh es extension of the GitHub CLI. See the usage instructions in the github/gh-es repository on GitHub.com.

For more information about accessing your instance via the extension, see 使用 GitHub CLI 管理实例.

Uploading a license via SSH

You can upload and interact with your license from the command line via SSH. See the documentation for the ghe-license command in 命令行实用程序. For more information about accessing your instance via SSH, see 访问管理 shell (SSH).