> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genie.harshalranjhani.in/llms.txt
> Use this file to discover all available pages before exploring further.

# document

> Reference for the `document` command in Genie, the AI-powered CLI companion.

<Info>
  **Note** This command is only available for the GPT, DeepSeek and Ollama engines.
</Info>

The `document` command helps you generate documentation for your codebase. It integrates with the genie comments to provide structured and detailed documentation, making it easier to understand and maintain your code.

## Usage

```bash theme={null}
genie document --file "filename"
```

## Flags

`--file`: Specifies the file to generate documentation for. This flag is required.

## Key Features

* **Automatic Documentation Generation:** Creates structured documentation based on genie comments in your code.

* **File-Specific Documentation:** Allows you to generate documentation for a specific file in your project.

## Example

```bash theme={null}
genie document --file "main.py"
```
