# Use

to generate a new app you just need to run this command

```
php artisan tomato-flutter:generate
```

make sure you are installed [Tomato CRM](/plugins/tomato-crm.md) and the [APIs](/plugins/tomato-crm/apis.md) is working fine.

now your app is ready you can start previewing it on your browser

```bash
cd /flutter/APP_NAME && flutter run -D chrome
```

if you need to run it on your Android emulator you can do that and it will ask you to add multiDex please press y

### Generate Module <a href="#user-content-generate-module" id="user-content-generate-module"></a>

to generate a new module you just need to run this command

```
php artisan tomato-flutter:module
```

### Generate Controller <a href="#user-content-generate-controller" id="user-content-generate-controller"></a>

to generate a new controller you just need to run this command

```
php artisan tomato-flutter:controller
```

### Generate Service <a href="#user-content-generate-service" id="user-content-generate-service"></a>

to generate a new service you just need to run this command

```
php artisan tomato-flutter:service
```


---

# 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.tomatophp.com/plugins/tomato-flutter/use.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.
