Skip to content

wpCLI v0.0.23a Download and New Features

Good day fellow WPadmins. Here is the latest download along with a handful of new features.

New Features

  • Started implementing help functions for the commands. You can now place a function (cmd_cmdname_help();)in your custom commands to display help information.
  • A much more verbose “sysinfo” command
  • Type “show rss [http://feedurl]” to display an rss2 feed along with links
  • Added a little verbosity to the “show user” command
  • Type “show weather [zipcode]” to see your current weather.
  • Did a little work on the “show cat” command. Type either “show cat [cat#]” or “show cat [catName]”
  • Type “show home” to display your blog in the shell. Note: will most likely screw with the formatting and layout.
  • Type “show post [postID]” to display the contents of a post.

DOWNLOAD wpCLI v0.0.23a

NOTE: wpCLI is still in its (alpha) testing phase. It is geared towards developers and testers and not meant to be a viable solution for typical everyday wordpress administration. Use at your own risk!

wpCLI v0.0.22a – Download and New Features

Since I realized that I neglected to observe the conflict between the wpcli parser and the || (or) statement in most programming languages , I tweaked the parser to accept code escape tags, ignore everything in between them when parsing, and simply pass off the ignored code to the php or js command. This has appeared to help the execution of php code drastically. I also tended to some other issues in the php command’s passing of strings and what not. Code seems to execute great from pipe to pipe however there is a minor glitch somewhere when the echo is used deep in a series of php pipes it craps out. Another quirk for now is that you may only use one set of escape tags per pipe. If you require multiple code statements in one pipe and you are not sure, just escape the entire string or at lease every thing after the php command up until the end of line or next pipe.

Here are some new Features

  • php will now hush the piped output data from the previous string and place it in a variable called $outs that you can use in your code. ie.
    • “php return ‘test’; | php return $outs; (prints “test” without quotes in the shell)
    • Remember that data from commands like echo and print_r will echo in the shell however the data will have no effect on the next pipe unless it is sent back to the parser via the return statement.

  • The tweet command appears to be working well. Just type..
    • tweet user:pass status no quotes required
  • New “cat” command for displaying files. Note that html will be resolved in the shell display.

DOWNLOAD wpCLI v0.0.22a

NOTE: wpCLI is still in its (alpha) testing phase. It is geared towards developers and testers and not meant to be a viable solution for typical everyday wordpress administration. Use at your own risk!

Download wpCLI 0.0.2a

NOTE: wpCLI is still in its (alpha) testing phase. It is geared towards developers and testers and not meant to be a viable solution for typical everyday wordpress administration. Use at your own risk!
That being said if you still wish to test it out, you can DOWNLOAD NOW

Screen shot from new wpCLI v0.0.2a

Hi folks. I’ve been hard at work on wpCLI the last week and I thought I might share a progress report with yall so below is a screen shot from the latest wpCLI and some of its new key features.

  • Implemented a new javasript interface. Successfully tested in firefox 3 and appears to work in chrome. (iPhone seem to work too if anyone cares)
  • Command piping appears to be functioning properly.
  • Can now add multiple users using comma separation
  • Can easily create custom plug-in commands.
  • Can run php code. ie.
    • php $test=’test; return $test; (with some quirks ie. escape chars and such)
  • Appears to execute JavaScript code
  • Created a convienient little command builder window that sends its contents to the command line either raw, with php prepended, and with js prepended. (Note: will also add echo button as well for sending html to the shell window)
  • Plus tons of other fun stuff, some of which I haven’t even discovered yet.

Now that the shell appears to be functioning ok, I will probably focus on creating more commands and improving the current ones.
More to come. Stay Tuned….

Coming soon.. wpCLI v0.1.0b

Hello wandering web-admins and welcome to my wpCLI project page. For those interested, I will be using this blog as a central information hub for the project so be sure and bookmark or subscribe now. Below is some brief information on the project and what is to come.

I first got the idea for wpCLI mid last year when I was dealing with a large number of account requests for one of my private blogs. It became somewhat monotonous to keep navigating the web interface to add handfuls of users. I thought, if only WordPress had a command line interface that I could just shoot these into. Well, a dozen pots of coffee and a weekend later, I was able to redneck together a simple WordPress plug-in that would allow me to do such. I also implemented a few other useless commands like the ability to add and delete categories and retrieve tidbits of information like category IDs and user IDs. This is the current version for download at sourceforge. BE CAREFUL as I have not had enough time to fully test it. You may wish to try it on a test blog first until you are comfortable with its use as there is no idiot proof features.

Recently I have begun working on the next version of wpCLI which basically involves a total rewrite of the command functions and parser from the ground up. This should drastically increase the power of the plug-in. Below are some of the new features I am working on for it.

  • Ability to pipe to other commands
  • Allow creation of multiple categories and users in single command line by comma seperation
  • Ability to tweet through the “tweet” command
  • A filter command that will filter piped data by specified arguments
  • qpost command which will allow one to publish a quick post from the command line
  • Recursively delete comments
  • set status of multiple comments or posts. Also be able to set global values for use in the plug-in
  • A much more verbose sysinfo command
  • A much more extensive help command

Looking way into the future, I would like to also add some sort of ajax implementation for the plug-in or possibly even a standalone java app that will allow for both realistic command line interaction and window detachment enabling the administrator quick and easy access to the cli. Other dreams would be things like the ability to script and even perform simple logical and control functions. It may also benefit from a spot in the wp database where functions can be maintained and customized as well as global settings and values can be stored. The possibilities are endless.

Of course this is all vision at the moment as the current state of the plug-in is far from resembling its mentioned desires. I have me and me alone to rely on at the moment for this vision to become reality so if this project piques your interests please consider helping in one or more of the following ways.

  • Donate: Anything will help.
  • Develop: The more the merrier.
  • Test: I am always in need of tester to help work out the kinks.
  • Feature Requests. Even if you have no development knowledge, you can still help the project greatly by making feature requests.

If you would like to get involved with a great open source project that could change the way WordPress administration is done, please email me at geek@phatus.com or contact me through the sourceforge project page.
Thanks again for visiting and stay tuned as we put a new spin on Wordpress administration.