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

# CLI Commands

> Reference for all Davia CLI commands.

<ParamField header="davia init" type="command">
  Initialize Davia in current directory. Creates `.davia` folder and project configuration.

  | Option           | Description                                                                        |
  | ---------------- | ---------------------------------------------------------------------------------- |
  | `--agent=<name>` | Specify AI coding agent (cursor, claude-code, github-copilot, windsurf, open-code) |
</ParamField>

<ParamField header="davia open" type="command">
  Start web server and open browser. Finds available port if specified port is in use.

  | Option            | Description                         |
  | ----------------- | ----------------------------------- |
  | `--port=<number>` | Specify port number (default: 3005) |
</ParamField>

<ParamField header="davia push" type="command">
  Upload documentation to remote workspace. Authenticates, links workspace,
  uploads files.
</ParamField>

<ParamField header="davia docs" type="command">
  Generate documentation using AI agent. Checks API key, runs agent, starts web server. Outputs files to `.davia/assets/`.

  | Option            | Description                            |
  | ----------------- | -------------------------------------- |
  | `--overwrite`     | Overwrite existing documentation files |
  | `--no-browser`    | Don't open browser after generation    |
  | `--port=<number>` | Specify port number (default: 3005)    |
</ParamField>
