Skip to content

Conversation

@dermatz
Copy link
Collaborator

@dermatz dermatz commented Jan 17, 2026

Remove short command codes, keep descriptive aliases only

Summary

Removed short command codes (e.g., m:t:b, m:s:c) from all CLI commands. These are unnecessary since bin/magento and magerun2 provide auto-completion. Only descriptive aliases are now used.

Changes

Removed short codes:

  • m:t:b → removed (use frontend:build)
  • m:t:c → removed (use frontend:clean)
  • m:t:l → removed (use frontend:list)
  • m:t:w → removed (use frontend:watch)
  • m:s:c → removed (use system:check)
  • m:s:v → removed (use system:version)
  • m:h:t → removed (use hyva:tokens)
  • m:h:c:c → removed (use hyva:check)

Current aliases structure:

  • Theme commands: frontend:* (build, clean, list, watch)
  • System commands: system:* (check, version)
  • Hyvä commands: hyva:* (tokens, check)

Updated files

  • All command classes in src/Console/Command/
  • README.md (root) - Updated examples
  • src/README.md - Updated command table

Why

Short codes are redundant - Magento CLI and magerun2 already provide command auto-completion. Descriptive aliases improve readability and are easier to remember.

@dermatz dermatz merged commit 34640fa into main Jan 17, 2026
8 checks passed
@dermatz dermatz deleted the feat-command-shortcodes branch January 17, 2026 11:19
@github-actions github-actions bot mentioned this pull request Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants