No Frills Command Line Magento A quick note to Magento Quickies readers (in case you missed it elsewhere). I’ve published the n98-magerun series as a Leanpub book titled “No Frills Command Line Magento”. Future chapters are in the works, so get your copy today.
astorm
Introducting the new n98-magerun module system
astorm
Alan Storm: Developing Commands for N98-magerun One last n98-magerun article. This one covers how I created the config:search command, and is really a sneaky way of teaching you about test driven development.
astorm
Test driven development is all the rage in certain PHP circles (while rage inducing code is all the rage in other PHP circles). Today we’re going to cover using the PHPUnit testing tools that ship with n98-magerun, as well as cover some programatic testing basics. Creating a test in n98-magerun is simple. First, make sure [...]
astorm
I’m happy to report n98-magerun have incorporated and improved my old attribute migration generator script into a new dev:setup:script:attribute command. $ n98-magerun list dev:setup:script ... Available commands for the "dev:setup:script" namespace: dev:setup:script:attribute Creates attribute script for a given attribute code If [...]
astorm
Throughout this series we’ve skirted around one important issue. Namely, the opaque nature of PHP’s phar format. Many groups claim the term “open source” in someway or another. There’s open source the license, which dictates how and where code can be used and shared. Then there’s open source “you [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Now that we’ve got a build environment up and running, we can get to work creating our first n98-magerun command. Our end goal for today is to add a helloworld command to n98-magrun $ ./n98-magerun.phar list //... Available commands: helloworld Displays a [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Today we’re going to run through setting up your own n98-magerun development environment. This will allow you to develop your own features and contribute bug fixes back to the main repository. This one’s a little longer than our normal Magento [...]
astorm
This article is part of a longer series covering the n98-magerun power tool The database: That which, as Magento programmers, we’re not supposed to touch. Use the native objects is a refrain I’ve sung on more than one occasion, and it’s still what I recommend to people starting out with Magento. Of course, even if we [...]
astorm
This article is part of a longer series covering the n98-magerun power tool We’re almost at the end of our n98-magerun command review. Today we’re going to blitz through the remaining commands on our plate $ n98-magerun list local Available commands for the "local-config:generate" namespace: local-config:generate Generates [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Today we’ll be covering the n98-magerun system (or sys) commands. $ n98-magerun.phar list sys sys:check Checks Magento System sys:cron:history Lists last executed jobs sys:cron:list Lists all cronjobs sys:cron:run Runs a cronjob by job code sys:info Prints [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Last time we covered the toggle related commands under the dev category. Today we’ll be covering the remaining development commands dev:console Opens PHP interactive shell with initialized Mage::app() (Experimental) dev:ide:phpstorm:meta Generates meta data [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Today we’re going to start in the on the n98-magerun commands under the dev category. $ n98-magerun.phar list dev ... dev:console Opens PHP interactive shell with initialized Mage::app() (Experimental) dev:ide:phpstorm:meta Generates meta data file for [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Similar to the already covered admin commands, n98-magerun also has commands for managing customer accounts. $ n98-magerun.phar list customer Available commands for the "customer" namespace: customer:change-password Changes the password of a customer. [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Magento is a module based system — each code module has a file named config.xml which contains configuration information related to the module. Magento will merge all the config.xml files into a single global configuration tree. This tree is then available for [...]
astorm
This article is part of a longer series covering the n98-magerun power tool Today we’ll be covering n98-magerun’s admin and cache commands. You can see the internal descriptions for these commands by using the top-level list command. $ n98-magerun.phar list admin ... Available commands for the "admin" namespace: [...]
astorm
This article is part of a longer series covering the n98-magerun power tool N98-magerun commands are organized in a tree hierarchy. For example, the extension:list command is actually the list command, under the top level category extension. These categories don’t tie back to any particular Magento system. Instead, they exist to [...]
astorm
This article is part of a longer series covering the n98-magerun power tool I’m starting a new series here on Magento Quickies covering the n98-magerun command line tool. This is a nifty utility that automates a lot of the day-to-day drudgery of working with a Magento system, and is a nice compliment to Commerce Bug’s [...]
astorm