# 如何通过命令行手动更新插件？

**URL:** https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661
**Category:** Support
**Created:** [2024年九月9日 15:32 UTC](https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661 "2024-09-09T15:32:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Clo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clo/32/372138_2.png) [@Clo](https://meta.discourse.org/u/Clo)
#### Post date: [2024年九月9日 15:32 UTC](https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661/1 "2024-09-09T15:32:37Z")

</div>

您好  
我正在尝试修复我的网站，该网站在更新后停止显示。看起来其中一个插件可能是问题所在，并且自从我的测试站点在重新安装所有更新后似乎显示正常以来，它可能已经得到了修复。

所以现在我想从命令行手动更新我的主站点上的插件，因为我无法访问我的管理员仪表板。我对任何类型的开发工作都非常陌生（没有背景，只是边做边学），所以有人可能有什么建议如何做到这一点吗？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年九月9日 16:24 UTC](https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661/2 "2024-09-09T16:24:06Z")

</div>

我不会将其标记为“开发工作”，这是系统管理（SA）。

这是指南：

> [@Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-on-a-self-hosted-site/19157):
>
> warning This guide assumes that you have a self-hosted standard installation. We only support the standard method of install here, so these instructions assume you have a [standard install](https://meta.discourse.org/t/142537?silent=true). warning This guide only applies to self-hosted Discourse instances. If you are using a managed hosting service, the available plugins are controlled by your hosting provider. For example, on our hosting [these specific plugins](https://www.discourse.org/plugins) are available by hosting tier. In this tutorial, we’ll install the [Discours…](https://github.com/discourse/discourse-solved)

---

<div class="post-metadata">

### Author: ![Clo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clo/32/372138_2.png) [@Clo](https://meta.discourse.org/u/Clo)
#### Post date: [2024年九月9日 16:32 UTC](https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661/3 "2024-09-09T16:32:04Z")

</div>

谢谢 @merefield  
我之前也读过了，但似乎没有提到如何从命令行_更新_已安装的插件。有什么建议吗？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年九月9日 16:34 UTC](https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661/4 "2024-09-09T16:34:47Z")

</div>

当您运行重建命令（在链接的文章中）时，如果任何插件可用，它将在过程中更新插件。

---

<div class="post-metadata">

### Author: ![Clo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clo/32/372138_2.png) [@Clo](https://meta.discourse.org/u/Clo)
#### Post date: [2024年九月9日 16:44 UTC](https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661/5 "2024-09-09T16:44:09Z")

</div>

太好了，我不知道，谢谢！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024年十月9日 16:44 UTC](https://meta.discourse.org/t/how-to-update-plugins-manually-from-the-command-line/325661/6 "2024-10-09T16:44:20Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
