Categories


Recent Posts


Archives


n98magerun18

N98-magerun: Writing Tests

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

N98-magerun: Creating Hello World

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

N98-magerun: Database Commands

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

N98-magerun: System Commands

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

N98-magerun: Customer Commands

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

N98-Magerun: Config Commands

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

Top Level n98-magerun Commands

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

Introduction to n98-magerun

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
email hidden; JavaScript is required