---
title: Generate code for custom content and data classes
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Xperience by Kentico allows you to generate strongly-typed code files for working with content types, module classes, and forms defined in the administration interface using the [\*.NET Command Line Interface\*](https://learn.microsoft.com/en-us/dotnet/core/tools/).

While the process is described in [the documentation](https://docs.kentico.com/documentation/developers-and-admins/api/generate-code-files-for-system-objects.md), seeing a walkthrough is often helpful.

In this video, Sean Wright walks through generating various kinds of code files using different options in the CLI and creating a PowerShell script to automate the process.

> **Info:** The following video shows Xperience by Kentico release v26. Some CLI commands for code generators have been updated to include new Xperience features. Find out more information about code generators in the product [Changelog](https://docs.kentico.com/changelog.md).

🎬 [Video](https://www.youtube.com/embed/taTi85moXzQ?si=1eu8xBHmLUOZ4M5j)
