MageSmith
118 commands · Magento 2.4.9 (extracted from source · curated examples)

Magento 2 CLI Reference

Every bin/magento command — arguments, options, copy-paste examples, and links to related commands. Pinned to Magento 2.4.9 (extracted from source · curated examples).

15 result(s) in setup group · Clear

setup:backup

Takes backup of Magento Application code base, media and database

setup:config:set

Creates or modifies the deployment configuration

setup:db-data:upgrade

Upgrades only the database data (without schema changes).

setup:db-declaration:generate-patch

Generates a data or schema patch class skeleton inside a module's Setup/Patch/ directory.

setup:db-declaration:generate-whitelist

Generates a db_schema_whitelist.json file alongside the module's db_schema.xml. Run after editing db_schema.xml.

setup:db-schema:upgrade

Upgrades only the database schema (without data fixes). Used for staged upgrades.

setup:db:status

Checks if the database schema and data are up to date — does setup:upgrade need to run?

setup:di:compile

Generates DI configuration, factories, proxies, and interceptors. Required for production mode.

setup:install

Installs Magento — creates schema, data, admin user, and base config. Run once when bringing a fresh database online.

setup:performance:generate-fixtures

Generates synthetic catalog/customer/order fixtures to stress-test performance work.

setup:rollback

Rolls back Magento Application code, media, and database from a previous backup.

setup:static-content:deploy

Deploys static view files (CSS, JS, images, fonts) for one or more locales.

setup:store-config:set

Sets store-level config (base URL, language, currency, etc.) without going through the admin UI.

setup:uninstall

Uninstalls Magento — drops every Magento table and removes generated/var content.

setup:upgrade

Upgrades the Magento application, database data, and schema. Run after enabling a module, after composer update, and as part of every deploy.

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.