Magento 2 CLI Reference
Every bin/magento command, with arguments, options, and copy-paste examples.


What Magento 2 CLI Reference does
- ✓ Every common bin/magento command grouped by namespace — cache, indexer, setup, module, dev, deploy, info, queue, and more
- ✓ Per-command page with synopsis, arguments, options, and copy-paste examples for the patterns you actually run
- ✓ Cross-linked 'see also' references so you discover related commands while reading (cache:clean → cache:flush, indexer:reindex → indexer:set-mode, etc.)
- ✓ Group filters on the index — 'show me every dev:* command' is one click
- ✓ Pinned to the latest stable Magento 2.4.x — version banner makes provenance explicit
- ✓ Each command is its own indexable URL — search Google for 'magento setup:upgrade --keep-generated' and land directly on the right page
How it works
Search or browse
Type a command name or description in the filter, or click a group chip (cache, indexer, setup, dev, …) to scope to one namespace.
Open the command
Per-command page shows synopsis + every argument and option with a one-line description, plus copy-paste examples for the most common usages.
Discover what's next
Each page links to related commands in the same group and explicit 'see also' references — so you learn the workflow, not just the syntax.
Frequently asked about Magento 2 CLI Reference
Which Magento version is the reference from? +
Pinned to the latest stable Magento 2.4.x. The version banner on every page shows exactly which release the commands were validated against.
Does it cover every single bin/magento command? +
We curate the most-used ~70 commands across the core groups. Edge-case commands and module-specific ones (sales:*, inventory:*) are added on demand. If you hit a missing command, drop a note.
Is this a wrapper around bin/magento --help output? +
No. Each entry is hand-curated with examples for the patterns developers actually run, plus 'see also' cross-links and group affinities that --help can't show.
How do I run these commands locally? +
From your Magento root: php bin/magento <command>. The reference shows the exact arguments and options — copy, adapt, run.
Do third-party module commands appear here? +
Core commands only. Coverage of widely-used third-party modules (Mage-OS, Hyvä, Adobe Commerce Cloud) is on the roadmap.
What about the difference between cache:clean and cache:flush? +
cache:clean removes invalidated entries; cache:flush wipes the underlying storage (Redis/file) entirely. Open either page for examples and the see-also links to the other.
Related tools
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.