In this lecture, we're going to create an angular application with the CLI tool.
We previously saw a list of commands with the NG help command.
One of the commands is called New.
This command will create a new application for us.
In the command line, add the new command.
But for running this command, it's considered good practice to check out the available options for
a new command.
In addition, we should verify we're not missing important details about this command.
Otherwise, we may break our application.
We can view information about a specific command by adding the help option.
The help option can be applied to sub commands too.
It's important to add the two dashes to understand why.
Let's scroll to the top of this long list of options.
The new command requires us to give our app a name.
For this reason, we need to add the two dashes to the help option.
If we didn't add these characters, the CLI would have assumed the name of our app is help instead of
giving us information about the command.
As for the other options, they are entirely optional.
We don't need to include these options unless we want to alter the default installation of a new project.
We won't need these commands, but it's always good to know what our options are.
Let's create a new project.
In the command line, we will run the new command again.
This time we will give our app a name.
The name of our app will be called Basics.
After running this command, the CLI will ask us a series of questions about our project.
These are options to customize the project further.
The first question we will be asked is if we would like to enable routing.
Routing is a topic we will be exploring in a future section.
For our first project we're going to select No.
Next, we will be asked to select our preferred approach for writing CSS.
If you're familiar with SASS or less, feel free to choose these options.
We won't be using either of these languages.
Plain CSS will work for our purposes.
After selecting our options, the CLI will begin creating our project.
It'll scaffold files and install a few packages.
This process may take a while.
The project has been successfully installed during the installation.
You may have gotten the following warning.
Warning LF will be replaced by CR LF If you did, it's safe to ignore this warning.
It's a formatting issue that the CLI will resolve for you.
Let's look at our new project In the file tree.
We will find a new folder called Basics.
It holds the same name we inputted in the command line.
Taking a peek inside there are dozens of files.
It can feel overwhelming, but we will walk through these files in an upcoming lecture before moving
further.
Let's test if the application is working first.
I'm going to quickly move into this folder with my editor.
After moving into the folder, we can start the server.
Let's explore how to start the server in the next lecture.