# Vue CLI

\ <br>

## Getting started with Vue CLI

<br>

### Installation

```bash
npm install -g @vue/cli
```

<br>

### Start project

```bash
vue create [PROJECT_NAME]
```

<br>

### Compiles and hot-reloads for development

```bash
$ npm run serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 DONE  Compiled successfully in 3520ms                                                               9:50:57 AM


  App running at:
  - Local:   http://localhost:8080/
  - Network: http://192.168.0.5:8080/

  Note that the development build is not optimized.
  To create a production build, run npm run build.
```

<br>

### Install `axios`

```bash
npm i axios
```

<br>

### Compiles and minifies for production

```bash
npm run build
```

<br>

### Lints and fixes files

```bash
npm run lint
```

\ <br>

`+`

### Boilerplate tasks when creating a Component

```vue
<template>
  <div>

  </div>
</template>

<script>
export default {
    name: 'HelloName',
    data: function() {
        return {

        }
    }
}
</script>

<style>

</style>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chloe-codes1.gitbook.io/til/vue.js/03_vue_cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
