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跟 ...
随机推荐
- SVN系列操作(二)&svn不显示图标的解决方法
接着上一篇文章,我们继续来操作一下SVN: 有同学反馈,我在本地上看到不SVN的图标,先解决一下这个问题. svn不显示图标的解决方法: 1.WIN+R,输入regedit,打开注册表 2.找到HKE ...
- C#-this关键字的功能之扩展方法
目录 1. 简介 2. 简单实例 3. 细节说明 1. 简介 我们的方法都是与声明他的类的相关联(我们现在写的各个方法都是在类中定义,所以我们调用方法都是用该方法所属类的实体对象调用). 在C#3.0 ...
- AnyDesk远程连接及异常处理
远程协助工具,用得最普遍的非QQ莫属,毕竟用户量在这里摆着的.不过,用户体验效果还不太理想,你懂得.接下来分享两个工具,一个是TeamViewer,另一个是AnyDesk.你更倾向于哪一款呢? 一.T ...
- Java 集合系列(四)—— ListIterator 源码分析
以脑图的形式来展示Java集合知识,让零碎知识点形成体系 Iterator 对比 Iterator(迭代器)是一种设计模式,是一个对象,用于遍历集合中的所有元素. Iterator 包含四个方法 ...
- Java 集合系列(一)
Java集合系列文章将以思维导图为主要形式来展示知识点,让零碎的知识形成体系. 这篇文章主要介绍的是[Java 集合的基本知识],即Java 集合简介. 毕业出来一直使用 PHP 进行开发,对于大学所 ...
- Java基础——0 前言
- 英语口语练习系列-C08-考试
<蒹葭>-诗经 蒹葭苍苍,白露为霜.所谓伊人,在水一方.溯洄从之,道阻且长.溯游从之,宛在水中央. 蒹葭萋萋,白露未晞.所谓伊人,在水之湄.溯洄从之,道阻且跻.溯游从之,宛在水中坻. 蒹葭 ...
- nuxt cdn等
https://blog.csdn.net/xuelang532777032/article/details/78398960
- websocket 实现单聊群聊 以及 握手原理+加密方式
WebSocket 开始代码 服务端 群聊 # type:WebSocket 给变量标注类型 # websocket web + socket from geventwebsocket.server ...
- mysql partition分区
(转) 自5.1开始对分区(Partition)有支持 = 水平分区(根据列属性按行分)=举个简单例子:一个包含十年发票记录的表可以被分区为十个不同的分区,每个分区包含的是其中一年的记录. === 水 ...
