 All right you guys. Thank you so much for coming. Did you have fun at the party last night? Just one person in. All right. Einstein said try not to become a man of success, but rather try to become a man of value. So many people pursue success, you know. And I think he's, well obviously he's an incredible figure, very smart. In that spirit, the purpose of the presentation today is to try to wrap as much value as we can so that so that we can become faster with WordPress. Three ways in which I would like to deliver value this morning is becoming faster so that by doing things faster with WordPress, with the command line, we're just saving the most important thing that we have which is time. You can spend it however you want. You can spend it with your family. You can spend it in other projects. Second one would be become more valuable. You can become more valuable to your employer, whether that employer is your end client because you have your own company, your own business and so they are employing you. You become more valuable because you have more tools or you are an employee for someone and because you have like these new techniques, you can even share them with your co-workers and whatnot. Also become fearless. When I first started with the command line, I was a little fearful because you can break the whole thing. The computer can completely stop working and it's like a chainsaw. When you see a chainsaw for the first time being used by someone else, you go like, oh my gosh, this thing is powerful. The immediate reaction of a normal person is to be fearful because there's so much power you can cut your leg off but at the same time, the power is what makes it so compelling as a tool. What makes you want to use a chainsaw is that you bypass that fear and that bypassing happens because you train yourself. You become more comfortable with the tool. You start using it maybe to cut a little limb first and then you start getting into the ladders and the whole thing. I don't know if you guys have seen some of those YouTube videos where I recommend you guys check them out, not right now. But people get on ladders, really tall ladders and then with the chainsaw, they start cutting the limbs and yeah, anyways, check those out. So those are the three ways to provide value this morning. Become faster, become more valuable and become fearless. So with that in mind, if I could share with you guys something in a few minutes that could save you hours, would that be valuable to you? Right? It's almost like I am giving you money this morning because technically if I save you time, I'll be saving you money. Adam, yesterday was talking about you want to move away from this concept of charging by the hour. So what I'm going to talk about today makes no sense with that model because if you charge by the hour and you're saving time, then you're undercharging yourself, right? You're getting less money even more. So the concept is let's move away from charging by the hour into charging because you guys are worth it. All right? My name is Alex Santeno. I'm a husband, father and son. I'm also the director of digital at Andesite. And I have about 15 years or so experience building websites, some experience with a little bit of Joomla, a little bit of Drupal, a little bit of other weird off the beaten path things, HTML by itself. I mean, I've done several things and finally arrived at WordPress, which I of course love. And finally, I am an allergy sufferer and I'm pretty sure you guys probably also can relate to that. How many of you have spring allergies? Yeah, exactly, exactly. My wife actually has the fall allergies. So she does a lot better now. So I'll be at the end of the year, I'll be the one laughing anyways. All right. Our agenda for today. Get familiar with the command line. So some introduction to the command line. Have you ever used the command line? All right. So you guys are familiar. We're going to do that very quickly. Then introduction to WPC Ally, which is WordPress on the command line, and then give some examples. Does that sound like a good plan? All right. We're going to be using Bash. According to Wikipedia, Bash is a unique shell. It's a command language written by Brian Fox. And it's a command processor that typically runs in a text window. So no big deal, no bells and whistles, no gooey, just text window. And you enter some commands and something happens. So pretty much is the simplest way that you can get something accomplished in a computer is with the command line. We're going to be using Bash, which is the default login shell for most Linux distributions. WordPress, for the most part, always is installed in a LAMP system or a Linux server. So we're going to be using Bash, which you could be using by connecting via SSH to a server anytime. And also is the default login for macOS as well. Windows 10 users, if you like PCs, I recommend... I was going to make a joke, but I'm not going. Windows 10 can actually install the developer tools and includes Bash now on your machine without having to install any extra extensions or whatnot. Microsoft came up with this relationship with Canonical, which are the people behind Ubuntu, a Linux distribution. And so now you just go to your developer tools, you enable Bash, and you can be working with the same commands that you'll be working on a Linux server, which is very convenient. And just for the purpose of my demonstration, I won't be using the terminal that is the default in a Mac. I'll be using a software called Iterm2, which basically is just coloring a little bit better, but it's still a text window. So nothing really different there. If you have a Mac, I recommend downloading Iterm2. It's free to download on the web. All right. So this is the convention of how command in Bash would look like. The dollar sign is the convention for saying, hey, I'm going to write a command. So you would... When you see something like this, you wouldn't type the dollar sign. And then we have the name of the command followed by some flags or some modifiers for that command followed by the arguments. Or what are we going to be affecting with this command? So command dash flags, space, and then the arguments. So that's it. That's the chainsaw moment. Bye-bye. All right. The most used commands. We have ls for listing. We have change directory or cd. We have move to rename files and to move them, move folders as well. We have ssh to connect to remote servers. We have curl to download some information from the web, from different files. We have change ownership, change mode to change the permissions of files and folders, etc. We're going to take a look at some of those in a live demo. Hopefully, everything goes well. Because you know how it is with demos, right? Sometimes they just... All right. Demo time, bill number one. So we are probably familiar with a concept that goes something like this. Hey, Alex. How are you doing? Hey, I'm doing good, but it has to go on. Good, good, good. Hey, I have a cousin and he needs a website. And he has this company and he's making lots of money. And he needs this website. And he asked me if I knew someone that knew about web design and all this stuff. And I immediately said, absolutely. I have the guy for you. I told him about Brian, but he couldn't do it. So I'm calling you to see if you could help the guy. His name is Bill. Can you give him a call? So you give Bill a call. Hey, Bill. How's it going? This is Alex. Oh, yeah, yeah, yeah, Alex. The web designer, right? Yes, yes. I need a website. And this is very simple. Heading to paragraphs. I could do it in Wix. Everybody can do it, like anybody in the whole world can do this. I was hoping that we could do it for 150 bucks. It's just like the heading and two paragraphs. No big deal. What do you think? So you end up saying like, oh my gosh, you know, like you're in this situation one more time. Has that happened to you guys or you don't relate at all? If you've been a designer or a developer for seven seconds, this is it. This is what people approach you with all the time, right? So you say, I'm not going to do this. You internally say, I'm not going to do this. But then externally you say, I'm going to do this. Why? Because he is the friend of, he's the cousin of your friend. And so you end up saying, okay, Bill, I'm going to do this one time. I shouldn't be doing this, but I'm going to do this, right? Let's go ahead and build a website for Bill from the command line. Oh, by the way, yeah, you ask Bill, hey, can you send me your logo and any assets that you have by now? And he says, oh, yeah, yeah, yeah. By the way, I spent like a thousand, $2,000 in the logo. That's why I don't have any money for the website. So he gives you the information about his business. Pauline Blow is his business. And he says, yeah, the tagline is sinus. Sinus. Do you get it? Do you get it? Yeah, I get it. Okay, Bill. Pauline Blow. So what they do is they blow the pollen. People don't like it. We do pollen blow. All right. Here we go. That didn't sound good. There we go. All right. We're at the command line here. And I conveniently created a folder called WorkCamp for us. And two things are happening right now, which stand for the dollar sign that we saw before. The first one is the username. In my case, it's Alex and Tenno in the blue. And then in the gray, we have the actual present working directory, present working directory. So the location where we're at. All right. LS to list. That's going to list the different folders and files that we have in this folder. If I do some flags, in this case, I'm going to do AL for hidden and long form. Sorry. That's going to also show me the hidden files and some extra information in long form. So it gives me, from left to right, it gives me the first letter says directory. So when you see a D is the directory always is a file with the dash. Then the permissions for the owner of the file. Then we have the permissions for the group, the next three. And then the permissions for the world or everybody else. We have a space with the number of links inside of that folder. We have the owner and group. We have the size of the file. In fact, let's go ahead and do this with ALFH so that it's human readable. A little bit better. So it gives us those file sizes a little bit easier to read. It gives us the last modified time of this file or folder. And the name of the file or folder. Dot means this folder. Dot dot means the parent of this folder. And every time that you see a file with the dot in the front is going to be a hidden file. So that's why you don't see it by default. This is just a regular representation of what you see in a regular folder. All right. So if I go to my Mac here and I go to that folder, this is what you see. A folder called test x1. And if I go back, then that's basically what I have. A folder called test x1, but nothing else. Everything else is just hidden. Let's go ahead and create a folder, make directory mkdir for bill pollenblow. ls. Now we have two folders, one pollenblow, one test x1. Let's go ahead and change directories to go into pollenblow, cd change directory pollenblow. And let's clear our screen because it's starting to get a little bit messy in there. So clear to clear the screen. All right, ls. Nothing inside. Nothing inside of pollenblow. All right, let's go ahead and create an index.html, right, with touch index.html. ls. Now we have an index.html file in there. To open that file with my default text editor, in my case it's sublime text, and you can use whatever you prefer, open dash t index.html. That's going to open sublime text for me. I'm going to enter some basic HTML here, pollenblow. I'm going to enter his heading, and the two paragraphs with Laura Mipson in there. All right, save this, close. Let's close this too. Let's go to my Firefox, and ahead of time, I set up pollenblow.alx as a domain that I can use in my machine, but you would be working in the server, so this would be already set up for you. So I have a server running on my machine for the demonstration here. All right, so that's the website that he wanted. He just wanted the heading. He just wanted two paragraphs. You call Bill. Hey Bill, 150 bucks. You can put the check in the mail. We're good to go. Thank you so much. Hey Alex, every time that you hear on the phone or on the email, when they start with the word hey, it's not good. Okay, I'm going to give you that tip. If you can take anything from this presentation, is that if they start with hey comma, it's terrible. So hey Alex, I failed to probably say this when we had our first conversation. I didn't exactly mean just one heading and a couple paragraphs. I was, you know, it's one of those things white. It's so web 2000. Let's go ahead and, if you don't mind putting like a background in gray and just the letters in white. That's all I want really. It's not a big deal. I mean, you've heard of style sheets, right? Yes, I have. I'll go ahead and do that change for you, Bill. All right, so we go back to our command line here, LS, and we're going to create a style.css file, which of course you guys know already. Wow. Yeah, well, is the audio system? Hello, one, two. You guys can hear me anyways, right? All right. Okay, perfect. So you guys know how to create a file now. It would be touch, the style.css, LS to list. Now there's an style.css. Let's open that file, style.css. There we go. Let's add some CSS in there. I'm going to do a background of gray and a color of white, right? Save, close, refresh. There's a wrapper in there. That's why I didn't do it, right? Let's go ahead and open index.html, div, wrapper, save, and hopefully, there we go. Bill, how are you doing, buddy? I hope you're doing great. Your website is done. Thank you so much. I enjoyed this project very much. You're great. Hey, Alex, I was hoping just, you know, I was talking to my wife and she said, from side to side, it's terrible. We need a container. We just... All right, Bill. Let's do the container. Let's do the container. All right, let's go ahead and go to our style.css file and give them the container to be done with this project, which now is not feeling like such a good idea anymore. All right, let's refresh this. Bill, there's the container. Are we good? Please. Alex, I'm so sorry. Hey, listen. I didn't think about this, but allergies are different in the spring that they're in the fall. In talking to my clients, they want me to change those two paragraphs every so often. So, when I'm in the spring, I type stuff about the spring allergies and in the fall, I do the same. I was wondering for maybe another 10, 20 bucks if you could put like a username and password in there so that I can just change those two paragraphs. I mean, you can do that on Wix, so could you do that for me? So anyways, now you're like, oh my gosh, he says to you like, Alex, you probably hate me now. You hate me. You go like, I don't hate you, Bill. I don't hate you. By now, you're already thinking I should have started with WordPress, right? Because I'm not going to go ahead and spend another 10 minutes or 20 minutes trying to just code a username and password screen for those changes, right? So let's go ahead and install WordPress for this guy. So LS to list, I'm going to remove a file, RM index.html, that removed my file. Let's go ahead and remove the folder altogether. So I'm going to do cd to change directory dot dot to go to the parent. I want you to see that I go from pollen blow to the one before LS. I'm now at work camp. I'm going to remove with flags RF for removing a directory and now it's gone. All right? Let's go ahead and install WordPress. Now, you could be tempted at this point to go to WordPress.org, download the latest version, set up your environment, et cetera. WordPress is legendary for the five minute install, right? So that's pretty good already. It would take us five minutes probably and for someone who's familiar, maybe a little bit less. Let's go ahead and install it from the command line. I have a script here and again all these scripts that I'm going to be using are going to be available after the talk. So if you guys want to download them, you'll be welcome to. Fresh-wp is going to ask me what name do you want to give this? I'm going to say pollen blow. There you go and hit enter. Let's count how long it takes. It's going to go to WordPress.org, download the latest version. If I already have a cache version, it does it from my machine. It generates the database. It installs WordPress for me with some defaults and I'm just going to go now to the website and it's done. All right. So I have WordPress installed in what? Seven seconds maybe? Maybe less? Let's go ahead and do a couple of things for him because I know that he's not going to be a happy camper if I just do that. I'm going to do cp for copy. He sent me the banner. I put in my desktop and called it banner. So cp, so copy the banner that I have on my desktop and put it in the header, which is in the theme 2017 hit enter. Oh, actually I have to get into pollen blow. So cd pollen blow and let's do that cp. All right. Let's go ahead and take a look. There you go. Excellent. Now I'm seeing here that the defaults did a title that is kind of together there. He's not going to like that. Let's do wp option and let's change the blog name to pollen blow. Let's do wp option update, blog description and change that to sign us. Let's take a look and again I could have gone inside and wp admin, logged with my username and password, go to settings, title and so on. But now it's done. He's not going to like the fact that it only has a hello world. He's going to call me or he's going to talk and say, hey Alex, can you do some example posts? So let's go ahead and do that. wp post list is going to give me a list of the posts that are available in a conveniently presented table. It has a column of ID, post title, the post name, post date and the status of that particular post and if you have more than one post it's going to do all those posts for you. Let's go ahead and create some for him. If we use curl it's going to go to a website and bring that website back. In this case I'm going to use a Lorem Ipsen website which is called loripsum.net slash api and then after the api thing you just give it a number of paragraphs and this is going to generate a given number of paragraphs for you. Curl. So I'm going to do that and it's going to come back with those two paragraphs of Lorem Ipsen. I can do as many paragraphs as I want by that number after the api. So I'm going to use this and I'm going to pass it with a pipe. I'm going to pass it to wp post generate and I'm going to pass it as the post content and then I'm going to say count equal four. I could do 20, I could do 100. With this kind of speed you can just very quickly just generate a WordPress website to see how 100 websites are behaving in a theme for example. Once you're done you just remove it. Okay so let's go ahead and do four for him that goes and generates those posts wp post list. Now we have all those posts ready and if we take a look they have Lorem Ipsen as well. If you were to do this manually it would take a long time but now we have all those posts ready for him. Let's go ahead and change it because I know that he's not going to like those post titles. So let's go ahead and do that wp post update. We're going to update post number three and we're going to call it post title. We're going to call it about us. All right wp post update number four. Let's go ahead and call that one contact us. If I do up with my scroll with my keys up actually retrieves my last command so I don't have to type it again. Let's go ahead and change this one number five to post title resources and let's take a look at the list wp post list. All right so now we have about us contact us resources and another post right there. Let's take a look at the website now and we have that post number four. We have resources we have contact us and about us. I mean we changed the title of what three posts in less than 20 seconds right. Let's go ahead and add a navigation because he's not going to want to have to scroll and click. He's going to want a menu with these items. All right wp menu list. This is going to give you a list of all the menus that you have on WordPress. We don't have any right now. Let's create one wp menu create and I'm going to call it primary. So we do wp menu list and now we have menu called primary but it hasn't been assigned to any locations as you can see. So let's do that now wp menu location assign and then the number the the id of that particular menu which is two and then the location defined by the theme. In this case 2017 defines location called top top so I'm going to use that one hit enter and now if we do wp menu list then now it's assigned to that location. All right it doesn't have any items though like the items that we created those pages that we created are not in the menu just yet. Let's go ahead and do that. We could do it manually one by one but if you already added let's say 20 or 30 pages it's just easier if we do it programmatically and that's what the command line is for. So if I use another script add menu and I'm going to pass the the result of a command with wp cli. So wp post list field equal id. What this is going to do is that it's going to run this command with the result of the post list but only with the field IDs or in other words just the IDs of those posts. It's not going to give me all the table that we've seen so far. So add menu it's going to ask me for what menu do I want to assign this to which is id of two and now it goes and retrieves every single one of those and adds it to my menu automatically for me. So if I just refresh here now I have that navigation with all these items added to it. That honestly took like maybe seven minutes or six minutes for the whole thing. This is a full website. This guy's paying 150 bucks for this. Oh no he offered 10 more bucks. I mean is this fast? Is this fast for you guys? I mean if you guys can start with a couple commands immediately it's changing your life. This is powerful. Like you can now go from just sometimes being like oh my gosh I need to install a new WordPress website to start developing to let me just install it real quick to do something and then let me just delete it and install another one just for this and then let me just delete that one and just use it as a tool. So WordPress becomes a tool as opposed to something that is heavy for you. Like you don't have to feel like oh my gosh WordPress.org, 7 million. How many Adam are using the website? 90 million people? 90 million people using the website. It's going to be slow and WordPress.org is pretty fast but still it's not as fast as this. All right let's go ahead and do one more thing. Let's take a look at plugins. WP plugin list. This is going to give me a table that has all the plugins that are installed and active in the website. I can do the same with themes as well. Let's go ahead and remove those the default plugins that come with WordPress. WP plugin delete and then the names of those plugins and they're gone. WP plugin list now has nothing. Let's go ahead and install one WP plugin WordPress SEO which is used SEO. It goes to the repository WP sorry WP plugin install WordPress SEO and this is going to go to the repository grab the latest version of WordPress SEO which is used and it brings an install set in my website WP plugin list. It's not active let's go ahead and activate that WP plugin. Well you can install the semper. Yeah no no no absolutely I'm not I'm not saying that you shouldn't install semper by all means. You go sometimes to one you go to another no no no I know by all means like you can install and this is this is the beauty of this you can go and install anything you don't even have to have like a plugin that is in the repository let's let's go ahead and do that let's go ahead and before I activate this plugin let's install one that I have in my machine WP plugin actually let's do like this all right let me see here hmm all right so WP plugin install and then this is just a path to a folder in my computer where I have gravity forms it installs that package let's do the same with WP plugin install WP CLI which I can just do gravity CLI all right so same thing WP plugin install and then the path to that particular plugin enter and installs that plugin WP plugin list to take a look at the at the list and now I have all those plugins but they are inactive let's activate those WP plugin activate and I could go one by one or I can just do flag all and it activates all of them for me so now all of them are active um let's go ahead and create a form right because Bill is going to want to form in his contact us form in his contact us page WP GF for gravity forms form list there's no forms right now let's create one GF form create I'm going to give it a title of contact us and a description of uh getting touch that created the form WP GF form field create uh idea of one for the form in which I want to create this field for uh it's going to be a type text first name let's do also a last name let's do of type phone a phone number let's do email of type email let's do text area so that they can leave some comments which probably for Bill are not going to be nice but but comments text area all right so WP GF form field list one all right that's a form that has first name last name phone email comments you could you could do it from here I'm not going to add it here because I would have to install capture for example uh but you can do it from here but let's go ahead and uh added to the contact us page for him WP post list the contact us page is of ID for so WP post edit for this is going to open my default editor and there it is I'm just going to remove all that and add just a short code gravity form ID of one save this and go back to the website refresh and now if we go to contact there should be a form there ready to go let's go ahead and submit this form Alex and Tenno phone I'm not going to give Alex nothing to say about bill submit cool that's submitted let's go back to the command line to take a look at the WP GF entry list one that's what I just submitted you can export this list if you want so if you're into uh having to retrieve entries in comma separated values for example uh every so often from a form so your client says hey I have this form we have several clients that have like this enormous forms and they have to download them because they're part of like government form submission and so they have to download them they can just leave them there so you can just create a script and download them programmatically so you don't have to go to the website all of these commands that we've looked at today they can be done over SSH as well with aliases so you can let's say you have 10 clients you can create an alias for each one of them and then create an alias that represents the group of those 10 so you can say uh plugin update for all of those websites and then you go play ball with your daughter as opposed to having to go to one website having or manage WP and log in and then like select the ones um the WP that you're using in the command line is the word for us the WP.cli that's correct WP.cli but we never installed that plugin correct you you would have to and for for this demonstration I didn't install it it's already installed in my machine um to install it it's it's basically going to WP.cli that come or you can go to developer.wordpress.cli like that here are the commands so if you go to wordpress.org this this will give you all the information that you want if you go to WP.cli it will give you the steps for actually installing and for example I have it in my machine so I can install it in my machine I don't know if you're using a Mac okay so you can install it on your servers where you have like your client wordpress installations and you can install it there I know SiteGround already has WP.cli installed on all their shared hosting so if you have SiteGround as your hosting provider and I'm not you know representing SiteGround but I like them they're really good and they already include WP.cli for you so you just SSH into the server and then you're again to the command line that looks exactly the same as this but if you want you can install it this way and I believe that with the bash in the PC you can probably do the same way it's a little difficult though oh cool perfect did they run in PCs or perfect awesome awesome Adam do you mind tweeting that so that someone can just easily just go to that absolutely absolutely in terms of command line other things that you would be interested with we've been developing locally in my machine so pollen blow is just a folder inside of my machine I can use a tar ball or tar and I can create sip verbose file a pollen blow that tar that g-sip and put that folder in there so this is pretty much just sipping a file or a folder so I'm just this particular kind it's just a tar ball sip it goes and retrieves all those files that are in pollen blow and puts them in a tar ball which is now here and now you move this you copy it into your server and then you extract it so if you are into the practice of FTPing WordPress files which by themselves just like moving all those files would take forever I don't know if you've done it or you have done in the past but this is a much faster way if I can just leave you with one thing today is that if you do it this way you'll save I don't even know how much time just compressing all the files and uploading this through a tunnel in SSH very simple and then uncompress it when it gets there as opposed to just moving all the files via FTP the command is tar c z v f c stands for create sip so compress it v for verbose so give me some information about what's going on and then file to give a file name otherwise like it would just like give you whatever random naming but it's tar yeah let's go ahead and do a couple of things that would go bad or really wrong in a website so cd pollen blow let's do wp db export and I'm going to give it a name of backup that sql so this would be exporting this database from here as opposed to having to go to my sql or having to use php my admin or going to the c panel together like just wp db export and I'm going to give it a name of bkp for backup that x sql hit enter so now if I do ls you can see that there's a backup file with my entire database there so if you do this step before actually compressing all your tar files then you will also be uploading your database to the file system on the server let's go ahead and do something catastrophic which is to drop the database here so db drop if I do this it's going to ask me hey are you sure about this this is not very normal of the command line and I want to say that because it is a little different with a graphic interface in graphic interface when you do something sometimes you get a reward like the system says hey you did great it worked but in the command line it doesn't happen like that if it works you get nothing it's only when there's an error that it says hey there was an error I couldn't do what you wanted but in the command line if it works it works so when removing files when dropping database when doing stuff like that you won't get anything any confirmation if you type it and you hit enter it'll do it but in this particular case in wp cli it actually gives you a confirmation because you don't want to be doing this without knowing what you're doing and getting rid of the whole thing correct the whole database it gets rid of the database even so not just the tables the whole thing let's go ahead and say yes by mistake and let's call bill hey bill I'm done with all this stuff I even created a contact us form for you I did all this main menu I did all this stuff we're good to go Alex I can't see that website what do you mean let me just refresh my computer here you should be able to see it oh my gosh I can't see it either I'll call you right back um this is catastrophic stuff the reason why I went here is because there's really nothing else even the white screen of death is even better than this this is the worst-case scenario all right to come back from this would basically be if you don't have a backup would be terrifying because you have to do the whole thing again let's go ahead and create that again so I'm in the installation let's do wp db create that creates the database so that went to my SQL and created the database and now let's go ahead and db import the backup of the sql hit enter that imported it and now let's go ahead and go back so the whole website is back there hey bill sorry about that I didn't mean to scare you or anybody but the website is up this is catastrophic stuff so it took like 10 seconds to get back from catastrophic so imagine like the other stuff is like a lot easier right all right so I think we have a few minutes more what I wanted to do for finishing up here was just show you some of the most common tasks that you can do with wp cli and to give you some of you the opportunity to choose one of them that you're interested with and and just take a look at how to do those we already covered some of them but if you're interested in one of them then we can take a look at that so anybody wants to be billed for a moment and just ask for something all right you want to select one of the list here to do create users okay let's let's go ahead and do create users so those are the commands you would be using wp user generate generates users so undefined you can generate let's say 100 users without having to go and create them just to test configurations for those you can use create for actually creating users one by one you can see user list and you can define roles would set role for a particular user let's go ahead and take a look in the demo for that so let's clear our screen with clear let's do wp user list that is going to give us a table just like before this time with the users that are already on the website let's go ahead and create one more wp user create from the installation correct I already have a default that I'm going to be using and we can go through the process of installing WordPress without those defaults if you want to show you how to do it but in general I have already the defaults because they really don't change and if it's my machine locally I'm going to always have my name Alex has the username and always the password it's going to be difficult so anyways let's do wp user create bill and it says wp user create I have to give it a user login which I'm going to say bill and then the user email I'm just going to set it to andy sites dot com bill at andy sites dot com excellent it gave me a difficult password all right the cool thing is that I actually could from here just say hey send the email so I can send you an email from here just like you would do when you're creating one from the graphic interface um so wp user list should include now also bill which it does but he's a subscriber and he obviously is not going to want to be a subscriber he wants to be the boss right right bill you want to be the boss let's do editors then I'm not going to give you you any more than wp user rolls wp user every time that you don't remember specifically a command you can just type whatever you're looking at for example in this case it's user and it gives me a list of the things that I can do so I don't have to remember or memorize some of them I already know because I use it a lot but if you don't even know them that well just do wp user and then I'll give you the commands that you can use all right so um let's do wp user let's do set roll the user is number two I believe and let's do editor that's what you wanted to be uh editor is that going to work yeah wp user list all right you can also do oh cool cool awesome absolutely is to remind them there awesome awesome excellent so so that's how you create users you can again generate users let's do that wp user generate let's do count equal a hundred that's going to take a little bit longer wp user list and that has a hundred users imagine doing that by hand it's just not going to happen all right uh anybody else I think we have two more minutes two more minutes yes uh great question that's exactly what I've been doing with some of them um let's go ahead and take a look at one for example my fresh wp if I do which fresh wp uh I can go ahead and open this in my editor which you guys already know how to do open t this is my fresh wp script all right I have read which is going to give me this prompt or this question you guys saw this what is the name that you want to use for this installation it assigns it to a variable in this case wp install and then it creates a directory with that variable with the name that I gave it goes into that so changes directory inside of that directory and then installs wp core by downloading it first then running config with this parameters which is the database with the name that I gave root password root user local host it creates that database and then following it installs wordpress with the url.alx for alex and then it gives it an administrator user of alex email alex at andy sites and then the password difficult which is not that difficult if you think and then it gives a message wordpress install is complete so you can create this scripts like all the time you can just set like the different commands that you want over and over again and create your own scripts as opposed to having to run it yes yeah I'll make them available I'll make them available after after the talk yeah and they can serve as examples of how to you know how to create those scripts to begin with for example one that is interesting could be as opposed to just doing plugin updates for all of your websites you could create a script that first creates a backup of your database we saw the command for the backup wpdb export and then we saw tarbol so you can include that command tar so it creates a backup also of your files and then after that runs the updates for all your plugins automatically if something breaks the white screen of death shows up then you can go back easily the script would just do export of the database and compressing of the files updating everything is everything working and if everything's working then you just delete everything otherwise you just go back to to fix it but you created a backup right before you updated all your plugins because let's be frank sometimes we're scared of what could happen when we update plugins especially the more automated you get it gets scary this the fresh wp is actually located in my path in other words i just need to install this particular script which is a bash script i just need to install it in one of the locations where my computer is reading those those scripts that's that's all it is required it doesn't need to be in the wpc align directory it doesn't have to be in fact it's much better if it's not in one of the installations so that i can use it all the time in different websites in different installations of WordPress 1.0 it's just running a sequence of wpc li commands correct oh no no no not at all no absolutely you can you can create one in fact for example x which is a very popular framework the tradition is that you name x-child the particular child theme so what you would do is just download the theme just the way that we did with plugin you would just do wp install the the x theme in this case it's not going to be available in the repository so you would have to give it a path where you download it and then just create the x-child folder inside of that one that and that's that's it yeah all right i think that's it i appreciate you guys coming i'm sorry after the talk i'll just post a link to my to my twitter so you guys can just like download them from it yeah what's your twitter again alex on this core centeno that's right let me just go ahead and centeno with c-e-n-t-e-n-o