Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Radiergummi/05940a00f805d7581ce5a4cbe66f1d05 to your computer and use it in GitHub Desktop.
Save Radiergummi/05940a00f805d7581ce5a4cbe66f1d05 to your computer and use it in GitHub Desktop.
Fish Shell Autocompletion for the Magento 2 Shell Script
# Installation:
# Copy to ~/.config/fish/completions/magento.fish
# Open new or restart existing shell session
# Commands based on Magento 2.0.0-rc and the command
# bin/magento --raw --no-ansi list
# It is a static list since you probably do not have the magento shell script
# in your path.
complete -f -c magento -s h -l help -d "Displays help for a command";
complete -f -c magento -s q -l quiet -d "Do not output any message";
complete -f -c magento -s v -l verbose -d "Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug";
complete -f -c magento -a -vv;
complete -f -c magento -a -vvv;
complete -f -c magento -s V -l version -d "Display this application version";
complete -f -c magento -l ansi -d "Force ANSI output";
complete -f -c magento -l no-ansi -d "Disable ANSI output";
complete -f -c magento -s n -l no-interaction -d "Do not ask any interactive question";
complete -f -c magento -a help -d "Displays help for a command";
complete -f -c magento -a list -d "Lists commands";
complete -f -c magento -a admin:user:create -d "Creates an administrator";
complete -f -c magento -a admin:user:unlock -d "Unlock Admin Account";
complete -f -c magento -a app:config:dump -d "Create dump of application";
complete -f -c magento -a cache:clean -d "Cleans cache type(s)";
complete -f -c magento -a cache:disable -d "Disables cache type(s)";
complete -f -c magento -a cache:enable -d "Enables cache type(s)";
complete -f -c magento -a cache:flush -d "Flushes cache storage used by cache type(s)";
complete -f -c magento -a cache:status -d "Checks cache status";
complete -f -c magento -a catalog:images:resize -d "Creates resized product images";
complete -f -c magento -a catalog:product:attributes:cleanup -d "Removes unused product attributes.";
complete -f -c magento -a cron:run -d "Runs jobs by schedule";
complete -f -c magento -a customer:hash:upgrade -d "Upgrade customer's hash according to the latest algorithm";
complete -f -c magento -a deploy:mode:set -d "Set application mode.";
complete -f -c magento -a deploy:mode:show -d "Displays current application mode.";
complete -f -c magento -a dev:source-theme:deploy -d "Collects and publishes source files for theme.";
complete -f -c magento -a dev:tests:run -d "Runs tests";
complete -f -c magento -a dev:urn-catalog:generate -d "Generates the catalog of URNs to *.xsd mappings for the IDE to highlight xml.";
complete -f -c magento -a dev:xml:convert -d "Converts XML file using XSL style sheets";
complete -f -c magento -a i18n:collect-phrases -d "Discovers phrases in the codebase";
complete -f -c magento -a i18n:pack -d "Saves language package";
complete -f -c magento -a i18n:uninstall -d "Uninstalls language packages";
complete -f -c magento -a indexer:info -d "Shows allowed Indexers";
complete -f -c magento -a indexer:reindex -d "Reindexes Data";
complete -f -c magento -a indexer:reset -d "Resets indexer status to invalid";
complete -f -c magento -a indexer:set-mode -d "Sets index mode type";
complete -f -c magento -a indexer:show-mode -d "Shows Index Mode";
complete -f -c magento -a indexer:status -d "Shows status of Indexer";
complete -f -c magento -a info:adminuri -d "Displays the Magento Admin URI";
complete -f -c magento -a info:backups:list -d "Prints list of available backup files";
complete -f -c magento -a info:currency:list -d "Displays the list of available currencies";
complete -f -c magento -a info:dependencies:show-framework -d "Shows number of dependencies on Magento framework";
complete -f -c magento -a info:dependencies:show-modules -d "Shows number of dependencies between modules";
complete -f -c magento -a info:dependencies:show-modules-circular -d "Shows number of circular dependencies between modules";
complete -f -c magento -a info:language:list -d "Displays the list of available language locales";
complete -f -c magento -a info:timezone:list -d "Displays the list of available timezones";
complete -f -c magento -a maintenance:allow-ips -d "Sets maintenance mode exempt IPs";
complete -f -c magento -a maintenance:disable -d "Disables maintenance mode";
complete -f -c magento -a maintenance:enable -d "Enables maintenance mode";
complete -f -c magento -a maintenance:status -d "Displays maintenance mode status";
complete -f -c magento -a module:disable -d "Disables specified modules";
complete -f -c magento -a module:enable -d "Enables specified modules";
complete -f -c magento -a module:status -d "Displays status of modules";
complete -f -c magento -a module:uninstall -d "Uninstalls modules installed by composer";
complete -f -c magento -a sampledata:deploy -d "Deploy sample data modules";
complete -f -c magento -a sampledata:remove -d "Remove all sample data packages from composer.json";
complete -f -c magento -a sampledata:reset -d "Reset all sample data modules for re-installation";
complete -f -c magento -a setup:backup -d "Takes backup of Magento Application code base, media and database";
complete -f -c magento -a setup:config:set -d "Creates or modifies the deployment configuration";
complete -f -c magento -a setup:cron:run -d "Runs cron job scheduled for setup application";
complete -f -c magento -a setup:db-data:upgrade -d "Installs and upgrades data in the DB";
complete -f -c magento -a setup:db-schema:upgrade -d "Installs and upgrades the DB schema";
complete -f -c magento -a setup:db:status -d "Checks if DB schema or data requires upgrade";
complete -f -c magento -a setup:di:compile -d "Generates DI configuration and all missing classes that can be auto-generated";
complete -f -c magento -a setup:install -d "Installs the Magento application";
complete -f -c magento -a setup:performance:generate-fixtures -d "Generates fixtures";
complete -f -c magento -a setup:rollback -d "Rolls back Magento Application codebase, media and database";
complete -f -c magento -a setup:static-content:deploy -d "Deploys static view files";
complete -f -c magento -a setup:store-config:set -d "Installs the store configuration";
complete -f -c magento -a setup:uninstall -d "Uninstalls the Magento application";
complete -f -c magento -a setup:upgrade -d "Upgrades the Magento application, DB data, and schema";
complete -f -c magento -a theme:uninstall -d "Uninstalls a theme";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment