Issue Bug Closed

#99396cli command extension:activate is not listed in list of posstible commands

Sybille Peters 12/20/22, 09:27 updated 08/11/26, 08:46

Description

See Slack: https://typo3.slack.com/archives/C025BQLFA/p1671087861055179

> seems we have a bug here..
> It’s still possible via
> typo3/sysext/core/bin/typo3 extension:activate extensionkey
> …but the command is missing in the help output.
> (There is a condition to hide the command in composer mode, but that seems to be broken)

Apparently, in non-Composer mode the command extension:activate is available (and works), but is not listed in list of commands.

Reproduce

Run command

  • typo3/sysext/core/bin/typo3 in a non Composer TYPO3 installation.

It lists the possible commands. It does not list extension:activate (and extension:deactivate).

It only lists these commands which start with extension:

extension:list                   Shows the list of extensions available to the system
extension:setup Set up extensions

All system extension are activated except for:

  • indexed_search
  • linkvalidator
  • opendocs
  • workspaces

System

  • reproduced with v11 (latest 11.5 branch) in non-Composer installation

I don’t know if this command should also be available in TYPO3 v12, but it is not shown there as well.

Reviews 3

History 813

  1. Benjamin Franzke commented and changed status Closed Accepted assigned to Benjamin Franzke <span data-processor="relativetime" data-value="2022-12-20T09:33:12+00:00" > 12/20/22, 09:33 </span>

    This is a TYPO3 core-bug, not a typo3_console issue.

    It seems the evaluation of env-var statements in tag attributes broke due to some symfony/dependency-injection update.

    So basically something like …

    # https://github.com/TYPO3/typo3/blob/v11.5.21/typo3/sysext/extensionmanager/Configuration/Services.yaml#L18
    hidden: "%env(TYPO3:isComposerMode)%"

    … no longer evaluates to true or false, but always results in the string "%env(TYPO3:isComposerMode)%" being processed by the ConsoleCommandPass, and then hidden with a truthy string value always evaluates to true and thus hides the command both in classic mode (where it should have been shown) and compose mode.

  2. Georg Ringer commented and changed status Accepted Needs Feedback <span data-processor="relativetime" data-value="2024-06-25T05:03:31+00:00" > 06/25/24, 05:03 </span>

    works in 13, should we close?

  3. Sybille Peters commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2024-06-25T11:00:13+00:00" > 06/25/24, 11:00 </span>

    Benjamin You set this to “Accepted”. Since Georg said it works in v13, I am closing. Please reopen or comment if not not ok.

  4. Benjamin Franzke commented and changed status Closed Accepted TYPO3 Version 11 13 <span data-processor="relativetime" data-value="2026-06-16T11:22:08+00:00" > 06/16/26, 11:22 </span>

    > Benjamin You set this to “Accepted”. Since Georg said it works in v13, I am closing. Please reopen or comment if not not ok.

    I’m sorry, I didn’t notice this message. I actually just stumbled across this again and confirm that it currently broken in v13 and v14 in classic mode.

    I’ll therefore reopen and try to provide a solution.

  5. Gerrit Code Review pushed patch set 1 for main to change 94521 status Accepted Under Review <span data-processor="relativetime" data-value="2026-06-16T11:53:18+00:00" > 06/16/26, 11:53 </span>

  6. Benjamin Franzke commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-06-29T09:40:11+00:00" > 06/29/26, 09:40 </span>

    Applied in changeset commit:2b5d4195fca05af5145c0b34c51de16081ebf82e.