# Reference

Source: https://docs.anetos.dev/main/reference/

Settings, commands, tags and rules, to look things up.


## Commands and settings

- [anetos tool and app commands reference](https://docs.anetos.dev/main/reference/cli/index.md): Two command lines: the `anetos` developer tool (module `anetos.dev/anetos/cli`), which creates projects and writes code, and your application's binary, which runs the app and its commands. See [Commands](https://docs.anetos.dev/main/guides/commands/index.md) and [Getting started](https://docs.anetos.dev/main/getting-started/index.md) for walkthroughs.
- [anetos generate reference](https://docs.anetos.dev/main/reference/anetos-generate/index.md): `anetos generate` writes the typed columns of your models. It is part of the `anetos` developer tool (module `anetos.dev/anetos/cli`). See [Generate typed columns](https://docs.anetos.dev/main/guides/code-generation/index.md) for a walkthrough.
- [Configuration reference](https://docs.anetos.dev/main/reference/configuration/index.md): Every key starts with its area's prefix (`DB_`, `CACHE_`, `QUEUE_`…). The key that picks a backend is `<AREA>_DRIVER` in every area (`DB_DRIVER`, `CACHE_DRIVER`, `MAIL_DRIVER`, `STORAGE_DRIVER`), except `AI_PROVIDER`.

## Web

- [Request binding reference](https://docs.anetos.dev/main/reference/binding/index.md): Rules used by `web.H` to fill a handler's input struct.
- [Views, sessions and forms reference](https://docs.anetos.dev/main/reference/views/index.md): The APIs of packages `view`, `view/vite`, `web/inertia`, `session` and `encryption`, and the HTML helpers of package `web`. See [Render HTML with templ](https://docs.anetos.dev/main/guides/views/index.md), [Sessions and flash messages](https://docs.anetos.dev/main/guides/sessions/index.md) and [Handle HTML forms](https://docs.anetos.dev/main/guides/forms/index.md) for walkthroughs. The components of a project's `views/ui` are in the [UI components reference](https://docs.anetos.dev/main/reference/ui/index.md).
- [Validation rules reference](https://docs.anetos.dev/main/reference/validation-rules/index.md): Rules for the `validate` struct tag, used by `validate.Struct` and `web.H`. See the [validation guide](https://docs.anetos.dev/main/guides/validation/index.md) for how to use them.
- [Translation file formats](https://docs.anetos.dev/main/reference/i18n-formats/index.md): The `format` and `relative` sections of a catalog, which `i18n.Date`, `Time`, `DateTime`, `Format`, `Currency`, `Ago`, `Duration` and `LanguageName` use, and the date pattern fields. The framework's English values are in [`i18n/locales/en.yaml`](https://github.com/anetos-dev/anetos/blob/main/i18n/locales/en.yaml); a language's come from `anetos locale:add` ([Numbers, dates and languages](https://docs.anetos.dev/main/guides/formatting/index.md)). A key a locale lacks comes from its parents, then English (the app's `en` catalogs, then the framework's), never from a fallback locale in another language.
- [OpenAPI reference](https://docs.anetos.dev/main/reference/openapi/index.md): Package `web/openapi` and what it writes. How to use it: [Describe an API with OpenAPI](https://docs.anetos.dev/main/guides/openapi/index.md).
- [UI components reference](https://docs.anetos.dev/main/reference/ui/index.md): The components of `views/ui`, the package `anetos new` writes into a web project, which the layout and the pages of `make:crud` and `make:auth` call. The package is your app's: this page describes it as `anetos new` writes it. See [Style your app](https://docs.anetos.dev/main/guides/styling/index.md) for changing it.
- [TypeScript reference](https://docs.anetos.dev/main/reference/typescript/index.md): Package `web/typescript` and the files it writes. How to use it: [Generate TypeScript types for the frontend](https://docs.anetos.dev/main/guides/typescript/index.md).

## Data

- [Models reference](https://docs.anetos.dev/main/reference/models/index.md): How the db package maps a struct to a table. See [Define models and save data](https://docs.anetos.dev/main/guides/models/index.md) for a walkthrough.
- [Query builder reference](https://docs.anetos.dev/main/reference/query-builder/index.md): Everything available on `db.Q[T]`, the query started by `db.Query[T](ctx)`. See [Query data](https://docs.anetos.dev/main/guides/queries/index.md) for a walkthrough.
- [Migrations reference](https://docs.anetos.dev/main/reference/migrations/index.md): The schema builder, the migration runner and the commands in package `anetos.dev/anetos/db/migrate`. See [Migrations](https://docs.anetos.dev/main/guides/migrations/index.md) and [Seed the database](https://docs.anetos.dev/main/guides/seeders/index.md) for walkthroughs.

## Packages

- [Authentication reference](https://docs.anetos.dev/main/reference/auth/index.md): Packages `auth`, `auth/password`, `auth/social` and `auth/rbac`. How-to: [Authentication](https://docs.anetos.dev/main/guides/authentication/index.md), [Authorization](https://docs.anetos.dev/main/guides/authorization/index.md), [Roles and permissions](https://docs.anetos.dev/main/guides/roles-and-permissions/index.md). Settings: [configuration reference](https://docs.anetos.dev/main/reference/configuration/index.md#authentication).
- [AI reference](https://docs.anetos.dev/main/reference/ai/index.md): The API of package `ai`. See [Add AI to your app](https://docs.anetos.dev/main/guides/ai/index.md) for a walkthrough, [AI](https://docs.anetos.dev/main/concepts/ai/index.md) for the design, and [Configuration](https://docs.anetos.dev/main/reference/configuration/index.md#ai) for the `AI_*` settings.
- [Testing reference](https://docs.anetos.dev/main/reference/anetostest/index.md): The APIs of packages `anetostest` and `db/factory`, and the hooks they use. See [Test your app](https://docs.anetos.dev/main/guides/testing/index.md) for a walkthrough.
