Skip to content

Instantly share code, notes, and snippets.

@cedricmagne
Last active February 2, 2016 09:13
Show Gist options
  • Save cedricmagne/ae5356635749a300574b to your computer and use it in GitHub Desktop.
Save cedricmagne/ae5356635749a300574b to your computer and use it in GitHub Desktop.
Magento 2 Command Line Tool (/bin/magento). See more: https://firebearstudio.com/blog/magento-2-command-line-tool-binmagento.html
## Usage
command [options] [arguments]
## Options
--help (-h) Display this help message
--quiet (-q) Do not output any message
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debugging
--version (-V) Display an application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
--no-interaction (-n) Do not ask any interactive question
# Available commands
help Displays help for a command
list Lists commands
# admin
admin:user:create Creates an administrator
# cache
cache:clean Cleans cache type(s)
cache:disable Disables cache type(s)
cache:enable Enables cache type(s)
cache:flush Flushes cache storage used by cache type(s)
cache:status Checks cache status
# catalog
catalog:images:resize Creates resized product images
# cron
cron:run Runs jobs by schedule
# dev
dev:css:deploy Collects, processes and publishes source LESS files
dev:tests:run Runs tests
dev:xml:convert Converts XML file using XSL style sheets
# i18n
i18n:collect-phrases Discovers phrases in the codebase
i18n:pack Saves language package
i18n:uninstall Uninstalls language packages
# indexer
indexer:info Shows allowed Indexers
indexer:reindex Reindexes Data
indexer:set-mode Sets index mode type
indexer:show-mode Shows Index Mode
indexer:status Shows status of Indexer
# info
info:adminuri Displays the Magento Admin URI
info:backups:list Prints list of available backup files
info:currency:list Displays the list of available currencies
info:dependencies:show-framework Shows number of dependencies on Magento framework
info:dependencies:show-Magento 2 modules Shows number of dependencies between Magento 2 modules
info:dependencies:show-Magento 2 modules-circular Shows number of circular dependencies between Magento 2 modules
info:language:list Displays the list of available language locales
info:timezone:list Displays the list of available timezones
# maintenance
maintenance:allow-ips Sets maintenance mode exempt IPs
maintenance:disable Disables maintenance mode
maintenance:enable Enables maintenance mode
maintenance:status Displays maintenance mode status
# module
module:disable Disables specified Magento 2 modules
module:enable Enables specified Magento 2 modules
module:status Displays status of Magento 2 modules
module:uninstall Uninstalls Magento 2 modules installed by composer
# setup
setup:backup Takes backup of Magento Application code base, media and database
setup:config:set Creates or modifies the deployment configuration
setup:cron:run Runs cron job scheduled for setup application
setup:db-data:upgrade Installs and upgrades data in the DB
setup:db-schema:upgrade Installs and upgrades the DB schema
setup:db:status Checks if DB schema or data requires upgrade
setup:di:compile Generates DI configuration and all non-existing interceptors and factories
setup:di:compile-multi-tenant Generates all non-existing proxies and factories, and pre-compile class definitions, inheritance information and plugin definitions
setup:install Installs the Magento application
setup:performance:generate-fixtures Generates fixtures
setup:rollback Rolls back Magento Application codebase, media and database
setup:store-config:set Installs the store configuration
setup:uninstall Uninstalls the Magento application
setup:upgrade Upgrades the Magento application, DB data, and schema
# theme
theme:uninstall Uninstalls theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment