# Usage

The flutter-view command is:

> `flutter-view [options] <directory [, directory...]>`

Flutter-view scans for Pug and HTML files in one or more directories. For it to work, you need to pass where your source code is. Normally this is the **lib** directory of your project.&#x20;

In almost every case, you want to go to your project directory and type:

> `flutter-view -w lib`

This will tell flutter-view to watch your lib directory, and keep watching (-w) for changes.

When flutter-view creates or updates Dart files, it will tell you:

<div align="left"><img src="/files/-LSqQdhb6qenGO1TRCMz" alt=""></div>


---

# 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://docs.flutter-view.io/get-started/usage.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.
