2. daniel immke
Design Engineer at 10up
Worked with WordPress
for 5 years
Started regularly using
command line about 7
months ago
Saturday, August 24, 13
4. my story
Developed themes for several years
Scared to adopt tools like version
control because of perceived difficulty
Working at 10up and learning command
line helped me break through that
Saturday, August 24, 13
10. Facts about command line
It was the original way to use a
computer
Advanced users still prefer it
because it is more powerful
Saturday, August 24, 13
11. command line basics
cd - Change directory
ls - List files in directory
nano - Opens file in simple
text editor program
program specific commands
Saturday, August 24, 13
12. command line basics
mkdir - Create folder
cp - Copy a file
mv - Rename/move file
command -flag param1 param2
rm - Removes a file
Saturday, August 24, 13
13. command line basics
There are several other commands
that one can learn to navigate the
filesystem and edit files, that you
can learn as you go.
Saturday, August 24, 13
15. password prompts
sudo - If you don’t have sufficient
permissions, put the sudo
command before everything else
and enter your password
sudo bash - Entering this by
itself will allow you to enter a mode
where you don’t have to enter your
password. Use sparingly.
Saturday, August 24, 13
16. You won’t learn every command,
but the basics are enough
to get started.
Saturday, August 24, 13
17. non windows systems
This talk is covering command line
for Unix based systems only
The principles are the same
Even if you use Windows, knowing
Unix is helpful with server
administration.
Saturday, August 24, 13
18. what can I do
with command line?
Saturday, August 24, 13
19. improve theme development
If you learn command line, you can
use many tools that will improve
development
We are going to focus on arguably
the most important: version control
Saturday, August 24, 13
21. version control: git
Git is a distributed version control
system that a group of people can
use to more effectively collaborate
on projects.
Currently the preferred VCS over
others like Subversion
Saturday, August 24, 13
22. installing git
http://git-scm.com
Configure global information at the
command line like so:
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Saturday, August 24, 13
23. using git
Using the cd command to
navigate to your theme directory
Type git init to create a git repo
Type git add * to add all files
Saturday, August 24, 13
24. committing with git
Then simply type git commit -m
“initial commit” to begin
versioning your theme with git
Writing concise commit messages
will help you look through versions
of your code.
Saturday, August 24, 13
25. other CLI tools
Grunt - Can be setup to
automatically minify your css/js
vagrant - Virtual machine
environment that replaces MAMP
wpcli - Tools for managing
WordPress installations from CLI
Saturday, August 24, 13
27. what you (hopefully) learned
Command line isn't scary, the
basics are actually pretty easy
Overview of basic version control
in Git using the command line
With command line, you can use
many tools that will improve themes.
Saturday, August 24, 13