際際滷

際際滷Share a Scribd company logo
11
About me
Head of Development at netz98
Magento 0.8 Beta (since 2008)
8x Magento Certified
Open Source Developer
Meetup Co-Organizer
Love: Family, PHP, Golang,
Linux, Soccer
Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev 22
What the h*** is n98-magerun?
Do not confuse! There is a Mage Run (for runners) by Brent
Petersen.
Community Project
CLI Tool (no fancy clickable UI)
Simple phar file
33Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Users
Developers
Administrators / DevOps
44Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Editions
Name Compatibility
n98-magerun Magento 1 (OpenMage)
n98-magerun2 Magento 2 (Current)
-> Two seperate Github projects.
55Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
History
66Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev 77
Installation
https://files.magerun.net/
curl -sS -O https://files.magerun.net/n98-magerun2.phar
chmod +x ./n98-magerun2.phar
88Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Traffic!
Hosting/CND sponsored by https://servebolt.com/ 99
How to run ...
n98-magerun2.phar <command>
Runs all Magento Core commands
Automatic Magento Root detection
1 01 0Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Some useful commands ...
1 11 1Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Maintenance Tasks
sys:info (format json, xml, csv)
sys:check
db:maintain:check-tables
db:console
db:dump (can remove customer data)
1 21 2Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Development
dev:console
sys:cron:<list|history|run|schedule>
1 31 3Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Config Management
config:env:create|set|show>
config:data:acl
config:store:<get|set|delete>
config:
1 41 4Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
API Integration
integration:create
integration:delete
integration:list
integration:show
1 51 5Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
magento_create_integration() {
n98-magerun2.phar integration:show 'netz98 DevBox' 2> /dev/null | grep -q 'netz98 DevBox'
if [ $? -eq 1 ]; then
n98-magerun2.phar integration:create 
--consumer-key '11111111111111111111111111111111' 
--consumer-secret '11111111111111111111111111111111' 
--access-token '11111111111111111111111111111111' 
--access-token-secret '11111111111111111111111111111111' 
'netz98 DevBox' 
devbox@netz98.de 
https://localhost
else
echo -en "${txtgrn}${check_mark} Default API credentials found${txtrst} n"
fi
}
1 61 6Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Magerun Configs
Configs can be placed on different levels:
Scope Path
Build-in config by
magerun
https://github.com/netz98/n98-
magerun2/blob/master/config.yaml
System Level /etc/n98-magerun2.yaml
User Level ~/.n98-magerun2.yaml
Project Level app/etc/n98-magerun2.yaml
1 71 7Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Example
application:
check-root-user: false
commands:
N98MagentoCommandDatabaseDumpCommand:
table-groups:
- id: adobe
description: Adobe
tables: adobe_*
1 81 8Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Create your own Modules/Commands
As Agency
As Hosting Company
See: https://github.com/netz98/n98-magerun2/wiki/Modules
1 91 9Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
QA/Release Workflow
2 02 0Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Release
2 12 1Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Live Release!
v4.2.0
2 22 2Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Resources
https://magerun.net
https://files.magerun.net
https://github.com/netz98/n98-magerun2/wiki
https://github.com/netz98/n98-magerun/wiki
2 32 3Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev
Thanks!
2 42 4Christian M端nch / @cmuench / muench.devChristian M端nch / @cmuench / muench.dev

More Related Content

n98-magerun2 - Presentation 2020