n98-magerun2.phar
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
n98-magerun2.phar的更多相关文章
- PHP的学习--使用phar打包
前段时间写了几个PHP的脚本,但是因为脚本的项目是基于composer安装的,给别人使用的时候不太方便,就希望能够打包成一个能直接使用的文件. 搜索了一下,发现可以使用phar打包. 假设我们有如下一 ...
- phar文件的使用
1.用php命令行 php phar文件 2.生成bat文件,在命令行下使用,以composer.phar为例 ( 1)在php.exe所在目录新建composer.bat文件 (2)把compose ...
- 使用phar上线你的代码包
在我前一阵子写的一篇文章<新版 SegmentFault 重构之系统架构>中,很多人对其中提到的利用phar上线代码比较感兴趣,我就在这边跟大家分享下我目前的做法. 哪些项目适合phar打 ...
- PHP中phar包的使用
PHP5.3之后支持了类似Java的jar包,名为phar.用来将多个PHP文件打包为一个文件. 首先需要修改php.ini配置将phar的readonly关闭,默认是不能写phar包的,includ ...
- Yii2框架打包成Phar包报错的经历
以yii2为例 打包文件过程比较简单,但打包好以后简单测试yii命令,一直报错: PHP Fatal error: Uncaught yii\base\InvalidParamException: T ...
- Phar与Composer
如果你想把PHP玩出像Java那样的花来,那Phar.Composer甚至Phing应该都是必须要玩一遍的. Phar - Php Archive.包管理器,有些类似Java中的jar包,但有所不同. ...
- Phar文件
phar 扩展名文件提供了一种将整个PHP应用程序打包放入一个被称之为phar(PHP archive)的文件从而更加容易便利地发布和安装的方法.就像是java的jar文件有点类似.除了这个功能外,P ...
- 简单使用 PHP Phar 打包php代码 笔记
Phar简介:Phar 归档的概念来自 Java™ 技术的 JAR 归档,它允许使用单个文件打包应用程序,这个文件中包含运行应用程序所需的所有东西.该文件不同于单个可执行文件,后者通常由编程语言生成, ...
- Could not open input file: composer.phar
Yii 2官网推荐用Composer安装框架,但是在本地出错:Could not open input file: composer.phar.后来修改了命令行就ok了,难道是我装的Composer跟 ...
随机推荐
- 使用bfd监控静态路由,达到网络故障及时切换功能。
结论:通过BFD可以联动静态路由,从而监控整个网络上的网络情况,当出现故障时及时进行切换. 下面的例子,就是通过BFD监控上面的这个往返路由,当中间网络出现故障时,两端全部切换到下面的第二条路由进行通 ...
- 案例解析|政府信息化的BI建设应用 .
一.行业背景 某建设厅综合监管信息化平台,是政企业务协同的平台之一,同时兼具协作.门户.办公应用集成.用户权限管理等多项功能.在此要求基础上,选择中间件基础技术平台,可以在最大程度满足平台功能需求的前 ...
- Python第三天 序列 5种数据类型 数值 字符串 列表 元组 字典 各种数据类型的的xx重写xx表达式
Python第三天 序列 5种数据类型 数值 字符串 列表 元组 字典 各种数据类型的的xx重写xx表达式 目录 Pycharm使用技巧(转载) Python第一天 安装 shell ...
- C++17剖析:string在Modern C++中的实现
概述 GCC 8.2提供了两个版本的std::string:一个是基于Copy On Write的,另一个直接字符串拷贝的.前者针对C++11以前的,那时候没有移动构造,一切以效率为先,需要使用COW ...
- 【公众号系列】SAP HANA和区块链
公众号:SAP Technical 本文作者:matinal 原文出处:http://www.cnblogs.com/SAPmatinal/ 原文链接:[公众号系列]SAP HANA和区块链 写在 ...
- Linux内存描述之内存区域zone--Linux内存管理(三)
1 内存管理域zone 为了支持NUMA模型,也即CPU对不同内存单元的访问时间可能不同,此时系统的物理内存被划分为几个节点(node), 一个node对应一个内存簇bank,即每个内存簇被认为是一个 ...
- poi包冲突问题(excel)
1. 所需jar包 涉及的poi (1)poi-3.14.jar (HSSF) 依赖:commons-logging-1.2.jar.log4j-1.2.17.jar.commons-codec.1 ...
- ubuntu14.04 安装 php Composer时 composer:未找到命令
在Ubuntu14.04环境下,进行composer安装时,各个方面都很顺利,安装完成后,出现了如下的错误提示: 百思不得其解!本人的环境是Ubuntu14.04 ,安装过程也是严格按照compose ...
- LeetCode算法题-Count Binary Substrings(Java实现)
这是悦乐书的第293次更新,第311篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第161题(顺位题号是696).给定一个字符串s,计算具有相同数字0和1的非空且连续子串 ...
- 用人类社会工程学对C语言中的一些基本概念的剖析与理解
最近在学C语言程序设计时总是遇到一些概念理解上的不清晰与混乱的地方,在一次偶然间想到了以前看过的一部电影<我是谁,没有一个系统是安全的>,里面的主角用社会工程学的想法结合黑客知识化险为夷, ...