installl:

1,cd /usr/local/bin && curl -O https://files.magerun.net/n98-magerun2.phar

2,chmod +x ./n98-magerun2.phar && ./n98-magerun2.phar --version && alias n98='php /usr/local/bin/n98-magerun2.phar' ;

(Notice: Need install Zsh Package.)

3.--

Usage / Commands

  • 
    

    n98 list

  • n98 open-browser

help:

Usage:
command [options] [arguments]

Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--root-dir[=ROOT-DIR] Force magento root dir. No auto detection
--skip-config Do not load any custom config.
--skip-root-check Do not check if n98-magerun runs as root
--skip-core-commands[=SKIP-CORE-COMMANDS] Do not include Magento 2 core commands
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
help Displays help for a command
install Install magento
list Lists commands
mysql-client Opens mysql client by database config from env.php
open-browser Open current project in browser (experimental)
script Runs multiple n98-magerun commands
self-update Updates n98-magerun2.phar to the latest version.
selfupdate Updates n98-magerun2.phar to the latest version.
shell Runs n98-magerun as shell
admin
admin:notifications Toggles admin notifications
admin:user:change-password Changes the password of a adminhtml user.
admin:user:delete Delete the account of a adminhtml user.
admin:user:list List admin users.
cache
cache:clean Clean magento cache
cache:disable Disables Magento caches
cache:enable Enables Magento caches
cache:flush Flush magento cache storage
cache:list Lists all magento caches
cache:report View inside the cache
cache:view Prints a cache entry
config
config:data:acl Prints acl.xml data as table
config:data:di Dump dependency injection config
config:store:delete Deletes a store config item
config:store:get Get a store config item
config:store:set Set a store config item
customer
customer:change-password Changes the password of a customer.
customer:create Creates a new customer/user for shop frontend.
customer:info Loads basic customer info by email address.
customer:list Lists all magento customers
db
db:console Opens mysql client by database config from env.php
db:create Create currently configured database
db:drop Drop current database
db:dump Dumps database with mysqldump cli client
db:import Imports database with mysql cli client according to database defined in env.php
db:info Dumps database informations
db:maintain:check-tables Check database tables
db:query Executes an SQL query on the database defined in env.php
db:status Shows important server status information or custom selected status values
db:variables Shows important variables or custom selected
design
design:demo-notice Toggles demo store notice for a store view
dev
dev:asset:clear Clear static assets
dev:console Opens PHP interactive shell with initialized Mage::app() (Experimental)
dev:module:create Create and register a new magento module.
dev:module:list List all installed modules
dev:module:observer:list Lists all registered observers
dev:report:count Get count of report files
dev:symlinks Toggle allow symlinks setting
dev:template-hints Toggles template hints
dev:template-hints-blocks Toggles template hints block names
dev:theme:list Lists all available themes
eav
eav:attribute:list List EAV attributes
eav:attribute:remove Remove attribute for a given attribute code
eav:attribute:view View information about an EAV attribute
generation
generation:flush Flushs generated code like factories and proxies
index
index:list Lists all magento indexes
index:trigger:recreate ReCreate all triggers
media
media:dump Creates an archive with content of media folder.
script
script:repo:list Lists all scripts in repository
script:repo:run Run script from repository
search
search:engine:list Lists all registered search engines
sys
sys:check Checks Magento System
sys:cron:history Last executed cronjobs with status.
sys:cron:list Lists all cronjobs
sys:cron:run Runs a cronjob by job code
sys:cron:schedule Schedule a cronjob for execution right now, by job code
sys:info Prints infos about the current magento system.
sys:maintenance Toggles maintenance mode if --on or --off preferences are not set
sys:setup:change-version Change module resource version
sys:setup:compare-versions Compare module version with setup_module table.
sys:setup:downgrade-versions Automatically downgrade schema and module versions
sys:store:config:base-url:list Lists all base urls
sys:store:list Lists all installed store-views
sys:url:list Get all urls.
sys:website:list Lists all websites

最新文章

  1. windows下安装python模块
  2. thinkphp学习笔记(一)
  3. Xcode命令行生成Bitcode静态库
  4. installshield Basic 工程每次安装完提示重启电脑
  5. pure virtual、impure virtual、non-virtual函数的接口继承和实现继承
  6. hdu4759 Poker Shuffle 2013 ACM/ICPC Asia Regional Changchun Online
  7. web.xml讲解
  8. ACdream 1028 Path
  9. 转:MongoDB介绍及下载与安装
  10. Java将头像图片保存到MySQL数据库
  11. Android 开发笔记___RelativeLayout
  12. 时间函数DateTime()的用法
  13. 【嵌入式开发】 ARM 汇编 (指令分类 | 伪指令 | 协处理器访问指令)
  14. 2018国赛 - Writeup(待补充)
  15. Docker:网络及数据卷设置 [四]
  16. C# Collection 排序
  17. Spring注解与Java元注解小结
  18. 复习下C 链表操作(单向链表)
  19. qmake-how to
  20. leancloud js SDK 学习

热门文章

  1. 动态BGP和静态BGP的含义与区别
  2. C# 用户控件之温度计
  3. MySQL外键设置中的的 Cascade、NO ACTION、Restrict、SET NULL
  4. 用canvas给视频图片添加特效
  5. 珍藏版Chrome插件送给你们,不仅是程序员必备
  6. nginx 防止盗链
  7. SQL Server 更新统计信息出现严重错误,应放弃任何可能产生的结果
  8. python文章装饰器理解12步
  9. MySql 学习之路-聚合函数
  10. Python爬虫【解析库之beautifulsoup】