Deployment 3 - File System + Netlify CLI
This lesson preview is part of the Lightspeed Deployments course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.
Get unlimited access to Lightspeed Deployments, plus 80+ \newline books, guides and courses with the \newline Pro subscription.

[00:00 - 00:08] And now let's see our third and final way to deploying up. And we'll do that with our file system and Netlify CLI.
[00:09 - 00:15] For that, we'll need a web app project in our file system. We will need a Netlify account.
[00:16 - 00:23] We will need to build our app locally. We'll need to install Netlify CLI.
[00:24 - 00:31] We'll need to connect our local project with our Netlify account. So let's see how we will do that.
[00:32 - 00:37] Now obviously I already have a project downloaded and built. So I will not be redoing this.
[00:38 - 00:52] So let's start with step number four, install Netlify CLI. We do that, do not do npm install Netlify CLI minus j.
[00:53 - 01:10] Minus j means that we will install it globally. We want to do that to be able to access the commands that Netlify CLI gives you because otherwise we will have to keep running Netlify CLI to get access to its specific programs.
[01:11 - 01:21] While now we will be able to just run the command we want without easy. And then again, this takes like five minutes max.
[01:22 - 01:33] Even bit more than installing white because it's a big application, but again, it's super big. I already have installed so it will not take as much time.
[01:34 - 01:39] So it will be done even quicker. And if you don't have installed yet, don't worry about it.
[01:40 - 01:46] There is nothing you need to do rather than this npm install command that I showed you. So it will be fun.
[01:47 - 01:51] And it is installed. Nice.
[01:52 - 02:05] So now what we want to do is to log in to our Netlify account through Netlify CLI. So I'll just write Netlify log in.
[02:06 - 02:14] Now you can see that I am already logged in via Netlify config in my machine. We can do Netlify status to see.
[02:15 - 02:25] And again, this sold me that this is my account after they wanted to use. So now it asks me if I have run Netlify link yet.
[02:26 - 02:36] Because we don't decide how this is a web project that does not deploy Netlify right now. At least not connected with an in-it-like project on the web right now.
[02:37 - 02:49] Yet we want to connect with project with the project we just deployed. We will have to run Netlify link indeed and connect the project.
[02:50 - 02:58] So now when I make a change here and deploy, it will take the same project and deploy it there. Depends the rest of the new one.
[02:59 - 03:08] But we want to create a new one indeed at this time around and not link. So to do that we'll do Netlify deploy.
[03:09 - 03:22] That's definitely not the right command. Once you've tried big glue and you can see it again, it tells me if I want to link it to an existing project because I have to existing projects or create a new project.
[03:23 - 03:28] I want to get a new one. My team is telling me so I will start them.
[03:29 - 03:35] Project name based. Begin.
[03:36 - 03:48] And now it's getting the project, then it's building my app. And now it's deploying our build up into our project.
[03:49 - 04:03] Now if we go back to our Netlify account, you can see that we have in the wrong page, but that's fine. Let's go to our projects.
[04:04 - 04:18] You can see there is a new app right here, then this baby, the manna replants. Now there is an issue, not an actual issue, but it has not been completely deployed yet as a project.
[04:19 - 04:41] It's on draft mode because that's the default option when you deploy from your command line with Netlify. Now if we want to deploy it to production, which we need to make it live for the world to see actually, we can do Netlify deploy project right here too.
[04:42 - 04:48] So let's see. And now it builds our app again, if we have any changes.
[04:49 - 04:56] And now our app is actually indeed deployed again. And this time it's actually line.
[04:57 - 05:10] So if I click on this link, based, begin, don't Netlify the app, you can see the tower app is line. So it's me and example.
[05:11 - 05:21] Dot com, password, and our shining. And here we are, then we go, I didn't create a new menu item.
[05:22 - 05:35] I will add my unique. And I'll make it seven donors, because in cars, I have a bunch of space, I didn 't see here, this is that you've never heard before, from Mexico.
[05:36 - 05:40] So it makes it really expensive. I'll do my art there.
[05:41 - 05:45] I'll do lots of things. And let's go out to checkout.
[05:46 - 05:54] I'm going to take it because they have another manna that will line in on the table file. Let me click now, never go back to my orders.
[05:55 - 06:05] I have the table five reserved and go out and I'm sitting there. And I rather this stuff.
[06:06 - 06:18] I would clearly take that. And if we go back to our database and hit the fresh, I thought we don't need to , but we just want to get our updates, just possible.
[06:19 - 06:33] And go to the table. We'll see our main item, your table editor, and the fashion that this is here, seven back my name.
[06:34 - 06:47] So now our third way of deploying is also complete. As I said, under 30 minutes, three types of deployment with Netlify, one is on the other.
[06:48 - 06:54] We left a more complex way for last, but I think it was still a super easy way to deploy up.