Blog

Introducing Wiz, a CLI Tool for Magento

There is a lot of functionality in Magento that is hard to get to or tedious to work with.  There are so many tasks that developers, designers, and administrators do on a daily basis that require time-consuming trips to the Magento backend.  If you happen to want to do more than one of those operations, you end up having do each of those tasks one after the other... if only there was a better way!

It is my pleasure to announce Wiz: a command-line interface tool for working with Magento installations.  It was built to make your work (and subsequently your life) much easier!

Wiz has a whole bunch of great features, but here are some you're sure to like:

  • Create an admin user (tested in CE & PE)
  • Toggle template hints
  • Enable/disable module names
  • Enable/disable module output
  • Run xpath queries over the global config
  • Enable/disable/clear caches
  • ... and more!

Wiz is a work in progress and hasn't been thoroughly tested with every Magento version out there.  However, we've been using it with Professional and Community Edition installations without any major problems.

Things planned for future releases:

  • Templates for building modules
  • Better support for stores and configuration scopes
  • More useful utilities like reindexing, cron runs, etc.

Your feedback and bug reports are welcome!

Update: Some screenshots for the curious...

[caption id="attachment_970" align="alignnone" width="585" caption="List all modules, versions, and their statuses without going through the backend."]Wiz: module-list[/caption] [caption id="attachment_968" align="alignnone" width="585" caption="Create an admin user without having to touch the database."]Wiz: admin-createadmin[/caption] [caption id="attachment_967" align="alignnone" width="586" caption="Effortlessly clear, enable, & disable Magento caches."]Wiz: cache-*[/caption] [caption id="attachment_966" align="alignnone" width="586" caption="Enable and disable template hints. Great for theme/skin development."]Wiz: devel-showhints[/caption] [caption id="attachment_965" align="alignnone" width="586" caption="Dropping easily into MySQL shell for a Magento install."]Wiz: help & sql-cli[/caption]

Posted on March 8, 2011

Comments

Alex's picture

Awesome tool! Thanks alot for

Awesome tool! Thanks alot for this.

Hendy Irawan's picture

I'm not sure why Igor said

I'm not sure why Igor said that, but I completely disagree with him.

Wiz CLI is *tremendously* useful for operations team. It seriously hamper our ops if no such tool were available and sysadmins need to login to Magento instances and edit database tables for provisioning and configuration management operations. Automate is the keyword.

For development the role is less pronounced, but people are different. Some like the Web UI, some like to edit databases manually, and some (like me) just simply love the shell. And you can pipe, do grep and whatever to your heart's content.

Were Linux born today, and Linus thought "Let's just skip bash, just use full touch-oriented GUI like Windows8" Linux will never have the popularity and love from sysadmins as it is today.

Thank you Classy Llama for developing Wiz. We love it and we love you too.

Igor Ocheretnyi's picture

It's not bad idea to use

It's not bad idea to use commind line ( cli ). But I don't think that speed of development will be encreased using cli.
At the same time I know minimum 2 (two) free Magento debug extensions to switch on/off hints, show slq queries, other debug features.
To create admin user the simplest way open database table and add/modify user.

You have 7 Magento developers with Magento Certification, but I don't think that this tool show your level of Magento knowledge.

Any case GOOD LUCK.

Best regards,
Igor Ocheretnyi

Hendy Irawan's picture

Excellent! Thanks for this

Excellent! Thanks for this Magento CLI.

Exactly what I've been looking for!

Ross's picture

Nice one, thanks! :-)

Nice one, thanks! :-)

loopion's picture

Excellent! It opens a lot of

Excellent! It opens a lot of possibility.

nvahalik's picture

@B00MER: I had never noticed

@B00MER: I had never noticed those commands. Will definitely look at rolling those in. And yes, to disable the module it modifies the module's .xml file.

B00MER's picture

Looks promising, may want to

Looks promising, may want to tie it into the shell/ commands that are already available.

cd shell; php indexer.php indexall

Does this modify the modules .xml fully disabling it or just the output?

Brian vonKlepper's picture

Oh my! This looks great.

Oh my! This looks great. Command Line is always faster no matter the task at hand.

Brendan Falkowski's picture

Love the language choices of

Love the language choices of "totally/nah" for template path hints. This will definitely be a timesaver.

Nick's picture

Now this looks interesting.

Now this looks interesting.

ehansen's picture

@Nick - You rock! Thanks for

@Nick - You rock! Thanks for the post.

James's picture

excellent, thanks. looking

excellent, thanks. looking good, btw.

nvahalik's picture

@James: No problem.

@James: No problem.

James's picture

Great work, would love to see

Great work, would love to see some screen shots to push me over the edge enough to download it :)

Add comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options