Skip to content

๐Ÿ–ฅ๏ธ CLI Reference

This documentation is auto-generated from test cases.

๐Ÿ” Quick Reference - All options on one page for Ctrl+F search

๐Ÿ“‚ Categories

Category Options Description
๐Ÿ“ Base Options 12 Input/output configuration
๐Ÿ”ง Typing Customization 30 Type annotation and import behavior
๐Ÿท๏ธ Field Customization 27 Field naming and docstring behavior
๐Ÿ—๏ธ Model Customization 44 Model generation behavior
๐ŸŽจ Template Customization 25 Output formatting and custom rendering
๐Ÿ“˜ OpenAPI-only Options 8 OpenAPI-specific features
๐Ÿ“‹ GraphQL-only Options 1
โš™๏ธ General Options 18 Utilities and meta options
๐Ÿ“ Utility Options 10 Help, version, debug options

๐ŸŽฏ Focused Topics

Use these pages when you know the workflow area but not the exact option name.

Topic Options Groups
Model Customization 23 Model Naming, Model Reuse, Model Shape, Root Model
Template Customization 19 Custom Templates, Generated Output, Imports, Output Formatting
Typing Customization 20 Imports, Collection Types, Type Alias, Type Mapping, Type Syntax
OpenAPI 7 OpenAPI Naming, OpenAPI Paths, OpenAPI Scopes, Read Only Write Only

๐Ÿ”— Option Relationships

These links are generated from CLI option metadata and summarize options that imply, require, or conflict with other options.

Source Kind Condition Target Note
--use-annotated Implies Always --field-constraints enabled -
--use-specialized-enum Requires Always --target-python-version = 3.11+ --use-specialized-enum requires --target-python-version 3.11 or higher.
--original-field-name-delimiter Requires Always --snake-case-field enabled --original-field-name-delimiter can not be used without --snake-case-field.
--allow-extra-fields Implies Always --extra-fields = allow -
--collapse-root-models-name-strategy Requires Always --collapse-root-models enabled --collapse-root-models-name-strategy requires --collapse-root-models.
--keyword-only Requires Always --target-python-version = 3.10+ --keyword-only requires --target-python-version 3.10 or higher for dataclasses.
--output-model-type Implies --output-model-type = msgspec.Struct --use-annotated enabled -
--parent-scoped-naming Implies Always --naming-strategy = parent-prefixed -
--reuse-scope Requires --reuse-scope = tree --reuse-model enabled --reuse-scope=tree has no effect without --reuse-model.
--union-mode Requires Always --output-model-type = pydantic_v2.BaseModel --union-mode is only supported for --output-model-type pydantic_v2.BaseModel.
--use-missing-sentinel Implies Always --target-pydantic-version = 2.12 -
--use-missing-sentinel Requires Always --output-model-type = pydantic_v2.BaseModel --use-missing-sentinel is only supported for --output-model-type pydantic_v2.BaseModel.
--custom-file-header Conflicts Always --custom-file-header-path --custom-file-header can not be used with --custom-file-header-path.
--custom-file-header-path Conflicts Always --custom-file-header --custom-file-header-path can not be used with --custom-file-header.
--all-exports-collision-strategy Requires Always --all-exports-scope = recursive --all-exports-collision-strategy can only be used with --all-exports-scope=recursive.

All Options

Jump to: A ยท B ยท C ยท D ยท E ยท F ยท G ยท H ยท I ยท K ยท L ยท M ยท N ยท O ยท P ยท R ยท S ยท T ยท U ยท V ยท W

A

B

C

D

E

F

G

H

I

K

L

M

N

O

P

R

S

T

U

V

W