fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9eee1b449
master
1function __fish_print_magento_url_protocols -d"Shows all available URL protocols" 2echo http:// 3echo https:// 4end 5 6function __fish_print_magento_mysql_engines 7echo MyISAM\t"MyISAM storage engine" 8echo InnoDB\t"Supports transactions, row-level locking, and foreign keys" 9echo BLACKHOLE\t"/dev/null storage engine (anything you write to it disappears)" 10echo MEMORY\t"Hash based, stored in memory, useful for temporary tables" 11echo CSV\t"CSV storage engine" 12echo ARCHIVE\t"Archive storage engine" 13end 14 15### 16 17function __fish_print_magento_modules -d"Lists all Magento modules" 18set -l config_path app/etc/config.php 19test -f $config_path ;or return 20 21set -l in_modules0 22cat $config_path | while read -l line 23if test " $in_modules " -eq 0 24if string match -rq'[\'"]modules[\'"]\s*=>.*\[' --$line 25set in_modules1 26end 27else 28if string match -rq'^\s*]\s*,\s*$' --$line 29break 30end 31string replace -rf'\s*[\'"](.*?)[\'"]\s*=>.*' '$1' --$line 32end 33end 34end 35 36function __fish_print_magento_i18n_packing_modes -d"Shows all available packing modes" 37echo replace\t"replace language pack by new one" 38echo merge\t"merge language packages" 39end 40 41function __fish_print_magento_available_ides -d"Shows all IDEs supported by magento" 42echo phpstorm\t"JetBrains PhpStorm" 43end 44 45function __fish_print_magento_available_tests -d"Shows all available magento tests" 46echo all\t"all tests" 47echo unit\t"unit tests only" 48echo integration\t"integration tests only" 49echo integration-all\t"all integration tests" 50echo static\t"static file tests only" 51echo static-all\t"all static file tests" 52echo integrity\t"integrity tests only" 53echo legacy\t"legacy tests only" 54echo default\t"all tests" 55end 56 57function __fish_print_magento_theme_areas -d"Shows all available magento theme areas" 58echo frontend\t"Frontend" 59echo adminhtml\t"Backend" 60end 61 62function __fish_print_magento_languages -d"Shows all existing magento languages" 63echo af_ZA\t"Afrikaans (South Africa)" 64echo sq_AL\t"Albanian (Albania)" 65echo ar_DZ\t"Arabic (Algeria)" 66echo ar_EG\t"Arabic (Egypt)" 67echo ar_KW\t"Arabic (Kuwait)" 68echo ar_MA\t"Arabic (Morocco)" 69echo ar_SA\t"Arabic (Saudi Arabia)" 70echo az_Latn_AZ\t"Azerbaijani (Azerbaijan)" 71echo eu_ES\t"Basque (Spain)" 72echo be_BY\t"Belarusian (Belarus)" 73echo bn_BD\t"Bengali (Bangladesh)" 74echo bs_Latn_BA\t"Bosnian (Bosnia and Herzegovina)" 75echo bg_BG\t"Bulgarian (Bulgaria)" 76echo ca_ES\t"Catalan (Spain)" 77echo zh_Hans_CN\t"Chinese (China)" 78echo zh_Hant_HK\t"Chinese (Hong Kong SAR China)" 79echo zh_Hant_TW\t"Chinese (Taiwan)" 80echo hr_HR\t"Croatian (Croatia)" 81echo cs_CZ\t"Czech (Czech Republic)" 82echo da_DK\t"Danish (Denmark)" 83echo nl_BE\t"Dutch (Belgium)" 84echo nl_NL\t"Dutch (Netherlands)" 85echo en_AU\t"English (Australia)" 86echo en_CA\t"English (Canada)" 87echo en_IE\t"English (Ireland)" 88echo en_NZ\t"English (New Zealand)" 89echo en_GB\t"English (United Kingdom)" 90echo en_US\t"English (United States)" 91echo et_EE\t"Estonian (Estonia)" 92echo fil_PH\t"Filipino (Philippines)" 93echo fi_FI\t"Finnish (Finland)" 94echo fr_BE\t"French (Belgium)" 95echo fr_CA\t"French (Canada)" 96echo fr_FR\t"French (France)" 97echo gl_ES\t"Galician (Spain)" 98echo ka_GE\t"Georgian (Georgia)" 99echo de_AT\t"German (Austria)" 100echo de_DE\t"German (Germany)" 101echo de_CH\t"German (Switzerland)" 102echo el_GR\t"Greek (Greece)" 103echo gu_IN\t"Gujarati (India)" 104echo he_IL\t"Hebrew (Israel)" 105echo hi_IN\t"Hindi (India)" 106echo hu_HU\t"Hungarian (Hungary)" 107echo is_IS\t"Icelandic (Iceland)" 108echo id_ID\t"Indonesian (Indonesia)" 109echo it_IT\t"Italian (Italy)" 110echo it_CH\t"Italian (Switzerland)" 111echo ja_JP\t"Japanese (Japan)" 112echo km_KH\t"Khmer (Cambodia)" 113echo ko_KR\t"Korean (South Korea)" 114echo lo_LA\t"Lao (Laos)" 115echo lv_LV\t"Latvian (Latvia)" 116echo lt_LT\t"Lithuanian (Lithuania)" 117echo mk_MK\t"Macedonian (Macedonia)" 118echo ms_Latn_MY\t"Malay (Malaysia)" 119echo mn_Cyrl_MN\t"Mongolian (Mongolia)" 120echo nb_NO\t"Norwegian Bokmål (Norway)" 121echo nn_NO\t"Norwegian Nynorsk (Norway)" 122echo fa_IR\t"Persian (Iran)" 123echo pl_PL\t"Polish (Poland)" 124echo pt_BR\t"Portuguese (Brazil)" 125echo pt_PT\t"Portuguese (Portugal)" 126echo ro_RO\t"Romanian (Romania)" 127echo ru_RU\t"Russian (Russia)" 128echo sr_Cyrl_RS\t"Serbian (Serbia)" 129echo sk_SK\t"Slovak (Slovakia)" 130echo sl_SI\t"Slovenian (Slovenia)" 131echo es_AR\t"Spanish (Argentina)" 132echo es_CL\t"Spanish (Chile)" 133echo es_CO\t"Spanish (Colombia)" 134echo es_CR\t"Spanish (Costa Rica)" 135echo es_MX\t"Spanish (Mexico)" 136echo es_PA\t"Spanish (Panama)" 137echo es_PE\t"Spanish (Peru)" 138echo es_ES\t"Spanish (Spain)" 139echo es_VE\t"Spanish (Venezuela)" 140echo sw_KE\t"Swahili (Kenya)" 141echo sv_SE\t"Swedish (Sweden)" 142echo th_TH\t"Thai (Thailand)" 143echo tr_TR\t"Turkish (Turkey)" 144echo uk_UA\t"Ukrainian (Ukraine)" 145echo vi_VN\t"Vietnamese (Vietnam)" 146echo cy_GB\t"Welsh (United Kingdom)" 147end 148 149function __fish_print_magento_source_theme_file_types -d"Shows all available source theme file types" 150echo less\t"Currently only LESS is supported" 151end 152 153function __fish_print_magento_deploy_modes -d"Shows all available deploy modes" 154echo developer\t"Development mode" 155echo production\t"Production mode" 156end 157 158function __fish_print_magento_cache_types -d"Shows all available cache types" 159echo config\t"Configuration" 160echo layout\t"Layout" 161echo block_html\t"Block HTML output" 162echo collections\t"Collections data" 163echo db_ddl\t"Database schema" 164echo eav\t"Entity attribute value (EAV)" 165echo full_page\t"Page cache" 166echo reflection\t"Reflection" 167echo translate\t"Translations" 168echo config_integration\t"Integration configuration" 169echo config_integration_api\t"Integration API configuration" 170echo config_webservice\t"Web services configuration" 171end 172 173function __fish_print_magento_verbosity_levels -d"Shows all available verbosity levels" 174echo 1 \t"normal output" 175echo 2 \t"more verbose output" 176echo 3 \t"debug" 177end 178 179function __fish_print_magento_list_formats -d"Shows all available output formats" 180echo txt\t"Print as plain text" 181echo json\t"Print as JSON" 182echo xml\t"Print as XML" 183end 184 185function __fish_print_magento_commands_list -d"Lists magento commands" 186set -l commands help list admin:user:create admin:user:unlock\ 187 app:config:dump cache:clean cache:disable cache:enable cache:flush\ 188 cache:status catalog:images:resize catalog:product:attributes:cleanup\ 189 cron:run customer:hash:upgrade deploy:mode:set deploy:mode:show\ 190 dev:source-theme:deploy dev:tests:run dev:urn-catalog:generate\ 191 dev:xml:convert i18n:collect-phrases i18n:pack i18n:uninstall\ 192 indexer:info indexer:reindex indexer:reset indexer:set-mode\ 193 indexer:show-mode indexer:status info:adminuri info:backups:list\ 194 info:currency:list info:dependencies:show-framework\ 195 info:dependencies:show-modules info:dependencies:show-modules-circular\ 196 info:language:list info:timezone:list maintenance:allow-ips\ 197 maintenance:disable maintenance:enable maintenance:status module:disable\ 198 module:enable module:status module:uninstall sampledata:deploy\ 199 sampledata:remove sampledata:reset setup:backup setup:config:set\ 200 setup:cron:run setup:db-data:upgrade setup:db-schema:upgrade\ 201 setup:db:status setup:di:compile setup:install\ 202 setup:performance:generate-fixtures setup:rollback\ 203 setup:static-content:deploy setup:store-config:set\ 204 setup:uninstall setup:upgrade theme:uninstall 205for iin $commands 206echo $i 207end 208end 209 210######################################################### 211 212function __fish_magento_not_in_command -d"Checks that prompt is not inside of magento command" 213set -l cmd( commandline -xpc) 214for iin $cmd 215if contains --$i ( __fish_print_magento_commands_list ) 216return 1 217end 218end 219return 0 220end 221 222######################################################### 223 224# Perforce command is a single word that comes either as first argument 225# or directly after global options. 226# To test whether we're in command, it's enough that a command will appear 227# in the arguments, even though if more than a single command is specified, 228# p4 will complain. 229function __fish_magento_is_using_command -d"Checks if prompt is in a specific command" 230if contains --$argv [ 1 ] ( commandline -xpc) 231return 0 232end 233return 1 234end 235 236######################################################### 237 238function __fish_magento_register_command -d"Adds a completion for a specific command" 239complete -c magento -n __fish_magento_not_in_command -a$argv [ 1 ] $argv [ 2 .. -1 ] 240end 241 242######################################################### 243 244function __fish_magento_register_command_option -d"Adds a specific option for a command" 245complete -c magento -n"__fish_magento_is_using_command $argv [ 1 ] " $argv [ 2 .. -1 ] 246end 247 248######################################################### 249 250function __fish_magento_parameter_missing -d"Checks if a parameter has been given already" 251if __fish_contains_opt $argv 252return 1 253end 254 255return 0 256end 257 258################## 259# Global options # 260################## 261complete -x -c magento -s h -l help -d"Show help for a command" 262complete -x -c magento -s q -l quiet -d"Do not output any message" 263complete -x -c magento -s v -l verbose -a"(__fish_print_magento_verbosity_levels)" -d"Increase verbosity: 1 for normal, 2 for verbose and 3 for debug" 264complete -x -c magento -o -vv 265complete -x -c magento -o vvv 266complete -x -c magento -s V -l version -d"Show version" 267complete -x -c magento -l ansi -d"Force colored output" 268complete -x -c magento -l no-ansi -d"Disable colored output" 269complete -x -c magento -s n -l no-interaction -d"Don't ask any interactive question" 270 271################ 272# Sub-Commands # 273################ 274__fish_magento_register_command help -a"(__fish_print_magento_commands_list)" -d"Show help for a command" 275__fish_magento_register_command list -d"List commands" 276 277__fish_magento_register_command admin:user:create -x -d"Create admin account" 278__fish_magento_register_command admin:user:unlock -x -d"Unlock admin account" 279 280__fish_magento_register_command app:config:dump -d"Create application dump" 281 282__fish_magento_register_command cache:clean -d"Clean cache types" 283__fish_magento_register_command cache:disable -d"Disable cache types" 284__fish_magento_register_command cache:enable -d"Enable cache types" 285__fish_magento_register_command cache:flush -d"Flush cache storage used by cache types" 286__fish_magento_register_command cache:status -d"Check cache status" 287 288__fish_magento_register_command catalog:images:resize -d"Create resized product images" 289__fish_magento_register_command catalog:product:attributes:cleanup -d"Remove unused product attributes" 290 291__fish_magento_register_command cron:run -d"Run jobs by schedule" 292 293__fish_magento_register_command customer:hash:upgrade -d"Upgrade customer's hashes according to latest algorithm" 294 295__fish_magento_register_command deploy:mode:set -d"Set application mode" 296__fish_magento_register_command deploy:mode:show -d"Show current application mode" 297 298__fish_magento_register_command dev:source-theme:deploy -d"Collect and publish source files for theme" 299__fish_magento_register_command dev:tests:run -d"Run tests" 300__fish_magento_register_command dev:urn-catalog:generate -d"Generate catalog of URNs to *.xsd mappings for IDEs to highlight XML" 301__fish_magento_register_command dev:xml:convert -d"Convert XML file using XSL stylesheets" 302 303__fish_magento_register_command i18n:collect-phrases -d"Discover phrases in the codebase" 304__fish_magento_register_command i18n:pack -d"Save language package" 305__fish_magento_register_command i18n:uninstall -d"Uninstall language packages" 306 307__fish_magento_register_command indexer:info -d"Show allowed indexers" 308__fish_magento_register_command indexer:reindex -d"Reindex data" 309__fish_magento_register_command indexer:reset -d"Reset indexer status to invalid" 310__fish_magento_register_command indexer:set-mode -d"Set index mode type" 311__fish_magento_register_command indexer:show-mode -d"Show index mode" 312__fish_magento_register_command indexer:status -d"Show status of indexer" 313 314__fish_magento_register_command info:adminuri -d"Show Magento Admin URI" 315__fish_magento_register_command info:backups:list -d"Show available backup files" 316__fish_magento_register_command info:currency:list -d"Show available currencies" 317__fish_magento_register_command info:dependencies:show-framework -d"Show dependencies on Magento framework" 318__fish_magento_register_command info:dependencies:show-modules -d"Show dependencies between modules" 319__fish_magento_register_command info:dependencies:show-modules-circular -d"Show circular dependencies between modules" 320__fish_magento_register_command info:language:list -d"Show available languages" 321__fish_magento_register_command info:timezone:list -d"Show available timezones" 322 323__fish_magento_register_command maintenance:allow-ips -d"Set maintenance mode exempt IPs" 324__fish_magento_register_command maintenance:disable -d"Disable maintenance mode" 325__fish_magento_register_command maintenance:enable -d"Enable maintenance mode" 326__fish_magento_register_command maintenance:status -d"Show maintenance mode status" 327 328__fish_magento_register_command module:disable -d"Disable specified modules" 329__fish_magento_register_command module:enable -d"Enable specified modules" 330__fish_magento_register_command module:status -d"Show status of modules" 331__fish_magento_register_command module:uninstall -d"Uninstall modules installed by composer" 332 333__fish_magento_register_command sampledata:deploy -d"Deploy sample data modules" 334__fish_magento_register_command sampledata:remove -d"Remove sample data packages" 335__fish_magento_register_command sampledata:reset -d"Reset sample data modules for re-installation" 336 337__fish_magento_register_command setup:backup -d"Take backup of application code base, media and database" 338__fish_magento_register_command setup:config:set -d"Create or modifies the deployment configuration" 339__fish_magento_register_command setup:cron:run -d"Run cron job scheduled for setup application" 340__fish_magento_register_command setup:db-data:upgrade -d"Install and upgrades data in the DB" 341__fish_magento_register_command setup:db-schema:upgrade -d"Install and upgrade the DB schema" 342__fish_magento_register_command setup:db:status -d"Check if DB schema or data requires upgrade" 343__fish_magento_register_command setup:di:compile -d"Generate DI configuration and all missing classes that can be auto-generated" 344__fish_magento_register_command setup:install -d"Install Magento application" 345__fish_magento_register_command setup:performance:generate-fixtures -d"Generate fixtures" 346__fish_magento_register_command setup:rollback -d"Roll back Magento Application codebase, media and database" 347__fish_magento_register_command setup:static-content:deploy -d"Deploy static view files" 348__fish_magento_register_command setup:store-config:set -d"Install store configuration" 349__fish_magento_register_command setup:uninstall -d"Uninstall Magento application" 350__fish_magento_register_command setup:upgrade -d"Upgrade Magento application, DB data, and schema" 351 352__fish_magento_register_command theme:uninstall -d"Uninstall theme" 353 354# 355# help 356# 357__fish_magento_register_command_option help -x -a"(__fish_print_magento_commands_list)" -d"Show help for a command" 358 359# 360# list 361# 362__fish_magento_register_command_option list -f -l xml -d"Output as XML" 363__fish_magento_register_command_option list -f -l raw -d"Output as plaintext" 364__fish_magento_register_command_option list -f -l format -a"(__fish_print_magento_list_formats)" -d"Output other formats (default: txt)" 365 366# 367# admin:user:create 368# 369__fish_magento_register_command_option admin:user:create -n"__fish_magento_parameter_missing admin-user" -f -a --admin-user -d"(Required) Admin user" 370__fish_magento_register_command_option admin:user:create -n"__fish_magento_parameter_missing admin-password" -f -a --admin-password -d"(Required) Admin password" 371__fish_magento_register_command_option admin:user:create -n"__fish_magento_parameter_missing admin-email" -f -a --admin-email -d"(Required) Admin email" 372__fish_magento_register_command_option admin:user:create -n"__fish_magento_parameter_missing admin-firstname" -f -a --admin-firstname -d"(Required) Admin first name" 373__fish_magento_register_command_option admin:user:create -n"__fish_magento_parameter_missing admin-lastname" -f -a --admin-lastname -d"(Required) Admin last name" 374__fish_magento_register_command_option admin:user:create -f -r -l admin-user -d"(Required) Admin user" 375__fish_magento_register_command_option admin:user:create -f -r -l admin-password -d"(Required) Admin password" 376__fish_magento_register_command_option admin:user:create -f -r -l admin-email -d"(Required) Admin email" 377__fish_magento_register_command_option admin:user:create -f -r -l admin-firstname -d"(Required) Admin first name" 378__fish_magento_register_command_option admin:user:create -f -r -l admin-lastname -d"(Required) Admin last name" 379__fish_magento_register_command_option admin:user:create -f -l magento-init-params -d"Add to any command to customize Magento initialization parameters" 380 381# 382# admin:user:unlock 383# 384__fish_magento_register_command_option admin:user:unlock -f -d"Admin user to unlock" 385 386# 387# cache:clean 388# 389__fish_magento_register_command_option cache:clean -f -a"(__fish_print_magento_cache_types)" -d"Space-separated list of cache types or omit for all" 390__fish_magento_register_command_option cache:clean -f -l bootstrap -d"Add or override parameters of the bootstrap" 391 392# 393# cache:enable 394# 395__fish_magento_register_command_option cache:enable -f -a"(__fish_print_magento_cache_types)" -d"Space-separated list of cache types or omit for all" 396__fish_magento_register_command_option cache:enable -f -l bootstrap -d"Add or override parameters of the bootstrap" 397 398# 399# cache:disable 400# 401__fish_magento_register_command_option cache:disable -f -a"(__fish_print_magento_cache_types)" -d"Space-separated list of cache types or omit for all" 402__fish_magento_register_command_option cache:disable -f -l bootstrap -d"Add or override parameters of the bootstrap" 403 404# 405# cache:status 406# 407__fish_magento_register_command_option cache:status -f -l bootstrap -d"Add or override parameters of the bootstrap" 408 409# 410# cron:run 411# 412__fish_magento_register_command_option cron:run -f -l group -d"Run jobs only from specified group" 413__fish_magento_register_command_option cron:run -f -l bootstrap -d"Add or override parameters of the bootstrap" 414 415# 416# deploy:mode:set 417# 418__fish_magento_register_command_option deploy:mode:set -f -a"(__fish_print_magento_deploy_modes)" -d'Application mode to set. Available are "developer" or "production"' 419__fish_magento_register_command_option deploy:mode:set -f -s s -l skip-compilation -d"Skip regeneration of static content (generated code, preprocessed CSS, assets)" 420 421# 422# dev:source-theme:deploy 423# 424__fish_magento_register_command_option dev:source-theme:deploy -d'Files to pre-process (file should be specified without extension) (default: "css/styles-m","css/styles-l")' 425__fish_magento_register_command_option dev:source-theme:deploy -f -l type -a"(__fish_print_magento_source_theme_file_types)" -d'Type of source files (default: "less")' 426__fish_magento_register_command_option dev:source-theme:deploy -f -l locale -a"(__fish_print_magento_languages)" -d'Locale (default: "en_US")' 427__fish_magento_register_command_option dev:source-theme:deploy -f -l area -a"(__fish_print_magento_theme_areas)" -d'Area (default: "frontend")' 428__fish_magento_register_command_option dev:source-theme:deploy -l theme -d'Theme [Vendor/theme] (default: "Magento/luma")' 429 430# 431# dev:tests:run 432# 433__fish_magento_register_command_option dev:tests:run -f -a"(__fish_print_magento_available_tests)" -d'Type of test to run (default: "default")' 434 435# 436# dev:urn-catalog:generate 437# 438__fish_magento_register_command_option dev:urn-catalog:generate -f -l ide -a"(__fish_print_magento_available_ides)" -d'Catalog generation format. Supported: [phpstorm] (default: "phpstorm")' 439 440# 441# dev:xml:convert 442# 443__fish_magento_register_command_option dev:xml:convert -s o -l overwrite -d'Overwrite XML file' 444 445# 446# i18n:collect-phrases 447# 448__fish_magento_register_command_option i18n:collect-phrases -s o -l output -d'Path (including filename) to an output file. With no file specified, defaults to stdout' 449__fish_magento_register_command_option i18n:collect-phrases -f -s m -l magento -d'Use --magento to parse current Magento codebase. Omit parameter if a directory is specified' 450 451# 452# i18n:pack 453# 454__fish_magento_register_command_option i18n:pack -f -s m -l mode -a"(__fish_print_magento_i18n_packing_modes)" -d'Save mode for dictionary (default: "replace")' 455__fish_magento_register_command_option i18n:pack -s d -l allow-duplicates -d'Use --allow-duplicates to allow saving duplicates of translate. Otherwise omit parameter' 456 457# 458# i18n:uninstall 459# 460__fish_magento_register_command_option i18n:uninstall -f -s b -l backup-code -d'Take code and configuration files backup (excluding temporary files)' 461__fish_magento_register_command_option i18n:uninstall -f -a"(__fish_print_magento_languages)" -d'Language package name' 462 463# 464# info:dependencies:show-framework 465# 466__fish_magento_register_command_option info:dependencies:show-framework -f -s o -l output -d'Report filename (default: "framework-dependencies.csv")' 467 468# 469# info:dependencies:show-modules 470# 471__fish_magento_register_command_option info:dependencies:show-modules -f -s o -l output -d'Report filename (default: "modules-dependencies.csv")' 472 473# 474# info:dependencies:show-modules-circular 475# 476__fish_magento_register_command_option info:dependencies:show-modules-circular -f -s o -l output -d'Report filename (default: "modules-circular-dependencies.csv")' 477 478# 479# maintenance:allow-ips 480# 481__fish_magento_register_command_option maintenance:allow-ips -l none -d'Clear allowed IP addresses' 482 483# 484# maintenance:disable 485# 486__fish_magento_register_command_option maintenance:disable -l ip -d"Allowed IP addresses (use 'none' to clear list)" 487 488# 489# maintenance:enable 490# 491__fish_magento_register_command_option maintenance:enable -l ip -d"Allowed IP addresses (use 'none' to clear list)" 492 493# 494# module:disable 495# 496__fish_magento_register_command_option module:disable -f -a"(__fish_print_magento_modules)" -d"Module name" 497__fish_magento_register_command_option module:disable -s f -l force -d"Bypass dependencies check" 498__fish_magento_register_command_option module:disable -l all -d"Disable all modules" 499__fish_magento_register_command_option module:disable -s c -l clear-static-content -d"Clear generated static view files. Necessary if module(s) have static view files" 500 501# 502# module:enable 503# 504__fish_magento_register_command_option module:enable -f -a"(__fish_print_magento_modules)" -d"Module name" 505__fish_magento_register_command_option module:enable -f -s f -l force -d"Bypass dependencies check" 506__fish_magento_register_command_option module:enable -f -l all -d"Enable all modules" 507__fish_magento_register_command_option module:enable -f -s c -l clear-static-content -d"Clear generated static view files. Necessary if module(s) have static view files" 508 509# 510# module:status 511# 512__fish_magento_register_command_option module:status -f -a"(__fish_print_magento_modules)" -d"Module name" 513__fish_magento_register_command_option module:status -f -l enabled -d"Print only enabled modules" 514__fish_magento_register_command_option module:status -f -l disabled -d"Print only disabled modules" 515 516# 517# module:uninstall 518# 519__fish_magento_register_command_option module:uninstall -f -a"(__fish_print_magento_modules)" -d"Module name" 520__fish_magento_register_command_option module:uninstall -f -s r -l remove-data -d"Remove data installed by module(s)" 521__fish_magento_register_command_option module:uninstall -f -l backup-code -d"Take code and configuration files backup (excluding temporary files)" 522__fish_magento_register_command_option module:uninstall -f -l backup-media -d"Take media backup" 523__fish_magento_register_command_option module:uninstall -f -l backup-db -d"Take complete database backup" 524__fish_magento_register_command_option module:uninstall -f -s c -l clear-static-content -d"Clear generated static view files. Necessary if module(s) have static view files" 525 526# 527# setup:backup 528# 529__fish_magento_register_command_option setup:backup -f -l code -d"Take code and configuration files backup (excluding temporary files)" 530__fish_magento_register_command_option setup:backup -f -l media -d"Take media backup" 531__fish_magento_register_command_option setup:backup -f -l db -d"Take complete database backup" 532 533# 534# setup:config:set 535# 536__fish_magento_register_command_option setup:config:set -f -l backend-frontname -d"Backend frontname (will be autogenerated if missing)" 537__fish_magento_register_command_option setup:config:set -f -l key -d"Encryption key" 538__fish_magento_register_command_option setup:config:set -f -l session-save -d"Session save handler" 539__fish_magento_register_command_option setup:config:set -f -l definition-format -d"Type of definitions used by Object Manager" 540__fish_magento_register_command_option setup:config:set -f -l db-host -d"Database server host" 541__fish_magento_register_command_option setup:config:set -f -l db-name -d"Database name" 542__fish_magento_register_command_option setup:config:set -f -l db-user -d"Database server username" 543__fish_magento_register_command_option setup:config:set -f -l db-engine -d"Database server engine" -a"(__fish_print_magento_mysql_engines)" 544__fish_magento_register_command_option setup:config:set -f -l db-password -d"Database server password" 545__fish_magento_register_command_option setup:config:set -f -l db-prefix -d"Database table prefix" 546__fish_magento_register_command_option setup:config:set -f -l db-model -d"Database type" 547__fish_magento_register_command_option setup:config:set -f -l db-init-statements -d"Database initial set of commands" 548__fish_magento_register_command_option setup:config:set -f -l skip-db-validation -s s -d"If specified, then db connection validation will be skipped" 549__fish_magento_register_command_option setup:config:set -f -l http-cache-hosts -d"HTTP cache hosts" 550 551# 552# setup:install 553# 554__fish_magento_register_command_option setup:install -n"__fish_magento_parameter_missing admin-user" -f -a --admin-user -d"(Required) Admin user" 555__fish_magento_register_command_option setup:install -n"__fish_magento_parameter_missing admin-password" -f -a --admin-password -d"(Required) Admin password" 556__fish_magento_register_command_option setup:install -n"__fish_magento_parameter_missing admin-email" -f -a --admin-email -d"(Required) Admin email" 557__fish_magento_register_command_option setup:install -n"__fish_magento_parameter_missing admin-firstname" -f -a --admin-firstname -d"(Required) Admin first name" 558__fish_magento_register_command_option setup:install -n"__fish_magento_parameter_missing admin-lastname" -f -a --admin-lastname -d"(Required) Admin last name" 559__fish_magento_register_command_option setup:install -f -l backend-frontname -d"Backend frontname (will be autogenerated if missing)" 560__fish_magento_register_command_option setup:install -f -l key -d"Encryption key" 561__fish_magento_register_command_option setup:install -f -l session-save -d"Session save handler" 562__fish_magento_register_command_option setup:install -f -l definition-format -d"Type of definitions used by Object Manager" 563__fish_magento_register_command_option setup:install -f -l db-host -d"Database server host" 564__fish_magento_register_command_option setup:install -f -l db-name -d"Database name" 565__fish_magento_register_command_option setup:install -f -l db-user -d"Database server username" 566__fish_magento_register_command_option setup:install -f -l db-engine -d"Database server engine" -a"(__fish_print_magento_mysql_engines)" 567__fish_magento_register_command_option setup:install -f -l db-password -d"Database server password" 568__fish_magento_register_command_option setup:install -f -l db-prefix -d"Database table prefix" 569__fish_magento_register_command_option setup:install -f -l db-model -d"Database type" 570__fish_magento_register_command_option setup:install -f -l db-init-statements -d"Database initial set of commands" 571__fish_magento_register_command_option setup:install -f -l skip-db-validation -s s -d"Skip database connection validation" 572__fish_magento_register_command_option setup:install -f -l http-cache-hosts -d"HTTP cache hosts" 573__fish_magento_register_command_option setup:install -f -l base-url -a"(__fish_print_magento_url_protocols)" -d"URL the store is supposed to be available at" 574__fish_magento_register_command_option setup:install -f -l language -a"(__fish_print_magento_languages)" -d"Default language code" 575__fish_magento_register_command_option setup:install -f -l timezone -d"Default time zone code" 576__fish_magento_register_command_option setup:install -f -l currency -d"Default currency code" 577__fish_magento_register_command_option setup:install -f -l use-rewrites -d"Use rewrites" 578__fish_magento_register_command_option setup:install -f -l use-secure -d"Use secure URLs. Enable only if SSL is available" 579__fish_magento_register_command_option setup:install -f -l base-url-secure -a"https://" -d"Base URL for SSL connection" 580__fish_magento_register_command_option setup:install -f -l use-secure-admin -d"Run admin interface with SSL" 581__fish_magento_register_command_option setup:install -f -l admin-use-security-key -d'Use security key in admin urls/forms' 582__fish_magento_register_command_option setup:install -f -r -l admin-user -d"(Required) Admin user" 583__fish_magento_register_command_option setup:install -f -r -l admin-password -d"(Required) Admin password" 584__fish_magento_register_command_option setup:install -f -r -l admin-email -d"(Required) Admin email" 585__fish_magento_register_command_option setup:install -f -r -l admin-firstname -d"(Required) Admin first name" 586__fish_magento_register_command_option setup:install -f -r -l admin-lastname -d"(Required) Admin last name" 587__fish_magento_register_command_option setup:install -f -l cleanup-database -d"Cleanup database before installation" 588__fish_magento_register_command_option setup:install -f -l sales-order-increment-prefix -d"Sales order number prefix" 589__fish_magento_register_command_option setup:install -f -l use-sample-data -d"Use sample data" 590 591# 592# setup:performance:generate-fixtures 593# 594__fish_magento_register_command_option setup:performance:generate-fixtures -f -s s -l skip-reindex -d"Skip reindex" 595 596# 597# setup:rollback 598# 599__fish_magento_register_command_option setup:rollback -s c -l code-file -d"Basename of the code backup file in var/backups" 600__fish_magento_register_command_option setup:rollback -s m -l media-file -d"Basename of the media backup file in var/backups" 601__fish_magento_register_command_option setup:rollback -s d -l db-file -d"Basename of the db backup file in var/backups" 602 603# 604# setup:static-content:deploy 605# 606__fish_magento_register_command_option setup:static-content:deploy -x -a"(__fish_print_magento_languages)" -d"Space-separated list of ISO-636 language codes to output static view files for" 607__fish_magento_register_command_option setup:static-content:deploy -f -s d -l dry-run -d"Simulate deployment only" 608__fish_magento_register_command_option setup:static-content:deploy -f -l no-javascript -d"Don't deploy JavaScript files" 609__fish_magento_register_command_option setup:static-content:deploy -f -l no-css -d"Don't deploy CSS files" 610__fish_magento_register_command_option setup:static-content:deploy -f -l no-less -d"Don't deploy LESS files" 611__fish_magento_register_command_option setup:static-content:deploy -f -l no-images -d"Don't deploy images" 612__fish_magento_register_command_option setup:static-content:deploy -f -l no-fonts -d"Don't deploy font files" 613__fish_magento_register_command_option setup:static-content:deploy -f -l no-html -d"Don't deploy HTML files" 614__fish_magento_register_command_option setup:static-content:deploy -f -l no-misc -d"Don't deploy other types of files (.md, .jbf, .csv, etc...)" 615__fish_magento_register_command_option setup:static-content:deploy -f -l no-html-minify -d"Don't minify HTML files" 616__fish_magento_register_command_option setup:static-content:deploy -s t -l theme -d'Generate static view files only for specified themes (default: "all")' 617__fish_magento_register_command_option setup:static-content:deploy -l exclude-theme -d'Do not generate files for specified themes (default: "none")' 618__fish_magento_register_command_option setup:static-content:deploy -f -s l -l language -a"(__fish_print_magento_languages)" -d'Generate files only for specified languages (default: "all")' 619__fish_magento_register_command_option setup:static-content:deploy -f -l exclude-language -d'Do not generate files for specified languages. (default: "none") (multiple values allowed)' 620__fish_magento_register_command_option setup:static-content:deploy -f -s a -l area -a"(__fish_print_magento_theme_areas)" -d'Generate files only for specified areas (default: "all")' 621__fish_magento_register_command_option setup:static-content:deploy -f -l exclude-area -a"(__fish_print_magento_theme_areas)" -d'Do not generate files for specified areas (default: "none")' 622__fish_magento_register_command_option setup:static-content:deploy -x -s j -l jobs -d"Enable parallel processing using specified number of jobs (default: 4)" 623__fish_magento_register_command_option setup:static-content:deploy -f -l symlink-locale -d"Create symlinks for files of locales which are passed for deployment but have no customizations" 624 625# 626# setup:store-config:set 627# 628__fish_magento_register_command_option setup:store-config:set -f -l base-url -a"(__fish_print_magento_url_protocols)" -d"URL the store is supposed to be available at" 629__fish_magento_register_command_option setup:store-config:set -f -l language -a"(__fish_print_magento_languages)" -d"Default language code" 630__fish_magento_register_command_option setup:store-config:set -f -l timezone -d"Default time zone code" 631__fish_magento_register_command_option setup:store-config:set -f -l currency -d"Default currency code" 632__fish_magento_register_command_option setup:store-config:set -f -l use-rewrites -d"Use rewrites" 633__fish_magento_register_command_option setup:store-config:set -f -l use-secure -d"Use secure URLs. Only enable if SSL is available" 634__fish_magento_register_command_option setup:store-config:set -f -l base-url-secure -a"https://" -d"Base URL for SSL connection" 635__fish_magento_register_command_option setup:store-config:set -f -l use-secure-admin -d"Run admin interface with SSL" 636__fish_magento_register_command_option setup:store-config:set -f -l admin-use-security-key -d'Use security key in admin urls/forms' 637 638# 639# setup:upgrade 640# 641__fish_magento_register_command_option setup:upgrade -l keep-generated -d"Prevents generated files from being deleted" 642 643# 644# theme:uninstall 645# 646__fish_magento_register_command_option theme:uninstall -f -l backup-code -d"Take code backup (excluding temporary files)" 647__fish_magento_register_command_option theme:uninstall -f -s c -l clear-static-content -d"Clear generated static view files"