My WordPress Toolbox

Thought I’d share this with you. Here are the commands I use to “do work” on WordPress.

Connect to a remote machine (usually I do development on my laptop, locally, but sometimes I’ll work from another computer):
$ ssh -l remote_username example.com

Make a directory:
$ mkdir /path/to/wordpress/

Browse to the WordPress directory:
$ cd /path/to/wordpress/

Use SVN to download the latest WP code to the current directory (which from now on, assume is /path/to/wordpress/):
$ svn co http://svn.automattic.com/wordpress/trunk/ .

Update existing SVN checkout to latest code:
$ svn up

Search WordPress for a string (‘function the_content’ in this case):
$ grep -iR 'function the_content' *

Edit a file using nano:
$ nano filename.php

Make a patch, for filename.php:
$ svn diff filename.php > filename.diff

Make a patch for all files modified in the checkout:
$ svn diff > big_patch.diff

Apply a patch from someone else:
$ patch -p0 < patch.diff

My main text editor is TextMate for OS X, but I’ll use nano if logged in to a remote system. Note that all these commands work for OS X and Linux (you’ll need svn installed… check out Fink for OS X which gives you apt-get and a bunch of nice Linux-y goodness).

Update: Peter Westwood has a tutorial for Windows users, which I recommend (I used to do development on Windows, and I used the tools that he recommends!)

120 thoughts on “My WordPress Toolbox

  1. Pingback: Peter Westwood » Windows WordPress Toolbox

  2. I don’t work on WordPress but I do develop other projects using SVN and I use Eclipse for most of the work. With a PHPeclipse and Subclipse you can do the same thing in one package. Thought your way seems to work for you.

  3. Pingback: Mark Jaquith’s WordPress Blog » Blog Archive » Bug Hunt on Saturday

  4. Pingback: skippy dot net » Bug Hunt Preparations

  5. Interesting stuff, but I am new to WP and have some basic questions: Can you help?
    1. I am using wordpress.com and want to change the title on the blog. How?
    2. Can I use a theme that is not there in wordpress.com?

    Would appreciate any help on these.

    Thanks,
    Scribbler.

  6. Pingback: Interesting News Posts

  7. Pingback: Peter Westwood » It’s bug hunt time.

  8. Pingback: What’s in the Toolbox?

  9. ssh username@example.com
    is smoother than the -l parameter. ;)

    A very helpful, yet widely unknown feature is bash’s (and other shell’s) tab completition: For example, if you want to go to /path/to/wordpress/, you type /p and press tab. You’ll either have path autocompleted, or you are shown all files/directories starting with p (if so, type the next letter, and so on). This is one of the features which saves a big bunch of time, when you’re working in the shell.

  10. Pingback: Bookmarks for Friday, January 11th — Trevor Fitzgerald

  11. Pingback: scot hacker’s foobar blog » WordPress Patch Committed

  12. what i m trying to do is when i login to wordpress on the site i see this topic called toolbox i would like users when they login go to that toolbox upload . can it be done or should i just make a php script? email me if you get this thank you

  13. [...] inspired by posts awhile ago by Westi’s Windows WordPress toolbox and Mark’s Mac/Unix based WordPress toolbox, I give you my WordPress-and-sometimes-not-Mac-and-Linux [...]

  14. [...] inspired by posts awhile ago by Westi’s Windows WordPress toolbox and Mark’s Mac/Unix based WordPress toolbox, I give you my WordPress-and-sometimes-not-Mac-and-Linux [...]

  15. l don’t work on WordPress but I do develop other projects using SVN and I use Eclipse for most of the work. With a PHPeclipse and Subclipse you can do the same thing in one package. Thought your way seems to work for you.

  16. A very helpful, yet widely unknown feature is bash’s (and other shell’s) tab completition: For example, if you want to go to /path/to/wordpress/, you type /p and press tab. You’ll either have path autocompleted, or you are shown all files/directories starting with p (if so, type the next letter, and so on). This is one of the features which saves a big bunch of time, when you’re working in the shell. http://www.yemek-tariflerimiz.tr.gg bekleriz

  17. Pingback: What to Expect When You’re Expecting WordPress Upgrades? | Lisa Sabin-Wilson

  18. Does anyone know if there’s a collection of WordPress instructional videos somewhere? From installation to usage and then template customisation?

  19. Hi – HiYa – Got there and to Peter Westwood’s “commit” post from Trac frontpage. Here’s what I’m thinking (I copied this from my comment in Mark’s blog a minute ago [1]): a couple of 101-style articles on basics … Eclipse/PHP with Subversion … or maybe Aptana, not sure. Thing is I’ve mucked by way through various IDEs over the past ?what? 3 decades, but not this. So if I can hook up with someone who uses this sort of setup day to day, I would co-author. Maybe you can hook me up with someone you know?

    best of the season to you
    –bentrem

    1) http://blog.ftwr.co.uk/archives/2005/11/03/windows-wordpress-toolbox/

  20. minute ago [1]): a couple of 101-style articles on basics … Eclipse/PHP with Subversion … or maybe Aptana, not sure. Thing is I’ve mucked by way through various IDEs over the

  21. I’ve never bothered getting my head around ssh. You’ve inspired me to give it a go. Thanks and a Stumble for your efforts :)

  22. Pingback: Alan’s blog » fix for Wordpress shortcode bug

  23. Good article! We started to implement word press blogs, however we are starting to look at Thesis. Has anyone here tried Thesis? If so, can anyone tell their experience with it? It looks pretty straight forward, although the price is kind of spendy..

  24. Pingback: Teleogistic / Setting up a WordPress/BuddyPress development environment on OS X

  25. Pingback: Contributing to WordPress Makes You a Better Developer | FullThrottle Development

  26. 你好朋友 有兴趣看下我们的软件:
    新动力英文URL外链收割机
    最新版本v20100703
    新增功能:
    根据URL关键词批量获取,如输入GuestBook.asp 就可获得大量此类地址
    通过代理分析查询,每日自动更新最新代理,避免IP访问限制
    新增代理浏览器 无界访问任何站点
    新增IP归属地
    能顶上10个人团队的英文外链分析软件
    几分钟内帮您快速拿得竞争对手的高权重高PR 可发布外连地址 筛选掉NOFOLLOW部分 为你所用
    我们有一流SEO类软件开发团队,诚交天下SEO界朋友,欢迎交流与合作!!!

  27. scribbler,

    I think you will find the commands depending upon which version of wp you are using at: options » general, to change the wp title.

  28. I am PHP developer and having more then 9 years of experience. I want to write some code for wordpress. How can I solve the wordpress bugs. Where I can find the wordpress bug list.

  29. thanks a lot. Good article! We started to implement word press blogs, however we are starting to look at Thesis. Has anyone here tried Thesis? If so, can anyone tell their experience with it? It looks pretty straight forward, although the price is kind of spendy..

  30. I discovered your blog site on google and check a couple of of your early posts. Proceed to maintain up the very good operate. I simply extra up your RSS feed to my MSN Information Reader. Looking for ahead to reading more from you in a while!…

  31. Pingback: svn patches from git | scribu

  32. whoah this weblog is fantastic i love studying your posts. Keep up the great paintings! You recognize, lots of persons are hunting around for this info, you could help them greatly.

  33. i want to patch wordpress.org/attachment/ticket/16706/16706.2.diff files to my taxomony.php . i opened taxomony.php files and edit related codes. But it gives me error. Can we a file and pass the pach code directly via ftp?

  34. Thanks a bunch for sharing this with all people you actually recognize what you’re talking approximately! Bookmarked. Kindly additionally seek advice from my web site =). We can have a link trade agreement among us

  35. You can definitely see your skills in the paintings you write. The arena hopes for more passionate writers like you who are not afraid to say how they believe. At all times follow your heart.

  36. Pingback: Room Heaters

  37. WordPress has become its own multi-million dollar industry. It’s a fantastic platform and user input has made it the leader. You should read this article: far cry 3 review. It gives really good insiight about the best tool to use with wordpress.

    Great article! Cheers!

  38. Pingback: Contributing to WordPress Core - It's Time to Give BackMatt Banks

  39. Pingback: How is WordPress Subversion Organized | Technosailor.com

  40. No one has fixed the custom URL link bug in the WordPress gallery yet. Do you know anyone that could fix it for free? If I can help in anyway, I would love to help out as well.

    I just want to cut back on plugins and the gallery says we can type in links the URL we like but the WordPress gallery doesn’t work… A ticket has been sent in and it just says someone will look some time :(

Comments are closed.