Skip to main content

升级

¥Upgrades

Strapi 定期通过新版本发布代码改进。新的 Strapi 版本在终端和管理面板中均有公布,GitHub 发行说明 列出了每个新版本的新功能。

¥Strapi periodically releases code improvements through new versions. New Strapi versions are announced in both the terminal and in the administration panel, and GitHub release notes list what is new with each new version.

Strapi 核心团队发布的 Strapi 的最新版本号可以在 npmGitHub 上找到。

¥The latest version number of Strapi that was released by the Strapi core team can be found on npm or on GitHub.

当发布新版本的 Strapi 时,你可能需要升级,当前页面是有关升级信息的入口点。

¥When a new version of Strapi is released, you might want to upgrade, and the present page serves as an entry point for information about upgrading.

How can I find my current Strapi version number?

你可以找到 Strapi 应用的当前版本号:

¥You can find the current version number of your Strapi application:

  • 在管理面板中,转到设置 > 全局设置 > 概述并查看详细信息部分中打印的 Strapi 版本号:

    ¥either in the admin panel, by going to Settings > Global Settings > Overview and looking at the Strapi version number printed in the Details section:

Finding your Strapi version number in the admin panelFinding your Strapi version number in the admin panel
  • 或通过在终端中运行 yarn strapi versionnpm run strapi version,从你的 Strapi 项目所在的文件夹中。

    ¥or by running yarn strapi version or npm run strapi version in the terminal, from the folder where your Strapi project is located.

根据你的使用情况单击以下两张卡片之一:

¥Click on one of the 2 following cards depending on your use case: