typo3 和typo3cms 命令行工具:列出非活动扩展

发布于 2025-01-15 14:38:05 字数 3141 浏览 5 评论 0原文

我正在运行 TYPO3 CMS v10 系统,并且对 typo3typo3cms 命令行工具有疑问。

也许只是我一个人,但我无法找到一种方法来通过命令行列出系统中安装的所有非活动(“停用”)扩展。

当我运行 typo3 extension:list 时,

我得到此输出

All installed (= active) extensions
===================================

+--------------------------------+------------+----------+--------+
| Extension Key                  | Version    | Type     | Status |
+--------------------------------+------------+----------+--------+
| core                           | 10.4.22    | System   | active |
| scheduler                      | 10.4.22    | System   | active |
| extbase                        | 10.4.22    | System   | active |
...many more

,但此列表不包含任何非活动扩展。最右边的列始终具有“活动”值。 (没用)

有一个替代的、更好的命令行工具,typo3cms,并且子命令

typo3cms extension:list

给出了这个输出:

 -------------------------- ----------- -----------------------------------------------------------------------------------------   
Extension key              Version     Description                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                             
 -------------------------- ----------- ----------------------------------------------------------------------------------------- 
  core                       10.4.22     The core library of TYPO3.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
  scheduler                  10.4.22     The TYPO3 Scheduler let's you register tasks to happen at a specific time                                                                                                                                                                                                                                                                                                                                                                                                                                           
  extbase                    10.4.22     A framework to build extensions for TYPO3 CMS. 
...many more

这个输出列出了< em>所有扩展,活动的和停用的,但它不包含Status列(与第一个列表不同)。

再说一遍:如何使用命令行获取仅包含非活动扩展的列表?

我熟悉标准的 unix 命令行工具,因此任何有关其他工具(例如 grepjq)的帮助对我来说都很好。

(我知道可以通过图形后端、扩展管理器面板获取此信息)

I have a TYPO3 CMS v10 system running and have a question about the typo3 and typo3cms command line tools.

Maybe it is just me but I cannot figure out a way to list all the inactive ("deactivated") extensions that are installed in the system, via the command line.

When I run typo3 extension:list

I get this output

All installed (= active) extensions
===================================

+--------------------------------+------------+----------+--------+
| Extension Key                  | Version    | Type     | Status |
+--------------------------------+------------+----------+--------+
| core                           | 10.4.22    | System   | active |
| scheduler                      | 10.4.22    | System   | active |
| extbase                        | 10.4.22    | System   | active |
...many more

But this listing does not contain any inactive extensions. The rightmost column always has the value "active". (It is useless)

There is an alternative, better, command-line tool, typo3cms, and the subcommand

typo3cms extension:list

however, gives this output:

 -------------------------- ----------- -----------------------------------------------------------------------------------------   
Extension key              Version     Description                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                             
 -------------------------- ----------- ----------------------------------------------------------------------------------------- 
  core                       10.4.22     The core library of TYPO3.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
  scheduler                  10.4.22     The TYPO3 Scheduler let's you register tasks to happen at a specific time                                                                                                                                                                                                                                                                                                                                                                                                                                           
  extbase                    10.4.22     A framework to build extensions for TYPO3 CMS. 
...many more

This output lists all extensions, active and deactivated, but it does not contain a Status column (unlike the first listing).

Again: how can I get a listing of only the inactive extensions, with the command line?

I am familiar with the standard unix command line tools, so any help with additional tools (e.g. grep, jq) is fine with me.

(I know can get this information this via the graphical backend, extension manager panel)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

相权↑美人 2025-01-22 14:38:05

我想您正在寻找的答案不可用,但我想提供一些背景知识:

使用typo3控制台和诸如typo3cms扩展名:setupactive之类的命令通常会挂接到composer安装/更新命令中将激活由composer提供的所有扩展(或在typo3conf/ext中可用)。

使用 TYPO3 11 并使用 Composer,不再有可用的非活动扩展,并且无法再在扩展管理器中禁用该扩展。请参阅https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.4/Feature-94996-ConsiderAllComposerInstalledExtensionsAsActive.html

因此我建议采用你的工作流程已经是 10 级了,因为无论如何你都需要在 11 级后适应它。

I guess the answer you are looking for is not available but nevertheless I want to give some background:

Using the typo3 console and commands like typo3cms extension:setupactive which usually hook into the composer install/update commands will activate all extensions which are provided by composer (or available in typo3conf/ext).

With TYPO3 11 and using composer, there is no inactive extension available anymore and there is no way to disable the extension in the extension manager anymore. See https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.4/Feature-94996-ConsiderAllComposerInstalledExtensionsAsActive.html

Therefore I suggest to adopt your workflows already in 10 as you need to get used to it in 11 anyways.

感悟人生的甜 2025-01-22 14:38:05

typo3 extension:list 有一个选项可以列出所有可用的扩展,包括已停用的扩展。因此,typo3 extension:list -a 将为您提供完整的列表,而不仅仅是活动的列表。

typo3 extension:list has an option to list all available extensions, including deactivated ones. So typo3 extension:list -a will give you a complete list, instead of just the active ones.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文