# Usage

Mochi has a CLI, albeit, it's not tested much. Use at your own risk.

> **Note:** I use it. Most commands just add a controller and/or a migration with `auth` being the heaviest. Nothing crazy. The cli outputs all files that were created/modified so it's pretty easy to check as well.

The cli follows `mochi g template class_name orm` so `mochi g auth user granite` generates the auth template with `User` as the class name and granite is the orm you are using.


---

# 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://awcrotwell.gitbook.io/mochi/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.
