Skip to content

Restore c:c shortcut for cache:clean 2.4.8 #39931

Open
@ajung2

Description

@ajung2

Summary

Dear Magento Development Team,

I would like to report an important developer experience issue with the Magento CLI that significantly impacts the daily development workflow.

Problem

In the current Magento CLI version 2.4.8, the shortcut php bin/magento c:c for the cache:clean command is no longer available. Instead, developers must now type out the full command php bin/magento cache:clean.

Impact on Developer Experience

This change results in:

  • Reduced productivity: The cache clean command is used very frequently during development
  • Unnecessary typing overhead: Developers now need to type 11 additional characters
  • Workflow disruption: Established muscle memory no longer works

Technical Background

The issue appears to be caused by the new specific command cache:clean:payment_services_merchant_scopes that was added to the cache:clean namespace. This highly specific command will never be used by the vast majority of developers.

CLI output shows:

Available commands for the "cache:clean" namespace:
  cache:clean:payment_services_merchant_scopes  Clean Payment Services Merchant scopes cache

Examples

app@d254b067e603:~/html$ php bin/magento c:c        
Magento CLI 2.4.8

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands for the "cache:clean" namespace:
  cache:clean:payment_services_merchant_scopes  Clean Payment Services Merchant scopes cache

Proposed solution

I kindly request that you restore the c:c shortcut for cache:clean. Possible approaches:

  1. Namespace reorganization: Move the Payment Services command to its own namespace
  2. Alias restoration: Define explicit aliases for frequently used commands
  3. Priority-based shortcuts: Give precedence to commonly used commands for shortcuts

Justification

  • The cache:clean command is one of the most frequently used CLI commands in Magento development
  • Developer experience should not be impacted by very specific, rarely used commands
  • Backward compatibility for established workflows is important for the developer community

I hope for your understanding of this issue and a timely solution in an upcoming update.

Release note

Additional Information:

  • Magento CLI Version: 2.4.8
  • Operating System: Ubuntu 24.04.2 LTS
  • PHP Version: 8.3

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrameworkComponent: CacheIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.8Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions