> ## 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.

# Quickstart

> Follow these simple steps to generate your first local wiki with Davia.

## Prerequisites

Before installing the Davia CLI, make sure you have Node.js and npm installed. You can install them from the official [Node.js downloads page](https://nodejs.org/en/download).

## Installation

<Steps>
  <Step title="Install Davia CLI">
    Install the Davia CLI globally so you can run Davia commands from any project:

    ```bash theme={null}
    npm i -g davia
    ```

    You can run this command from anywhere on your machine.
  </Step>

  <Step title="Initialize Davia with your coding agent">
    Inside your project, initialize Davia and tell it which AI coding agent you’re using:

    <CodeGroup>
      ```bash Cursor theme={null}
      davia init --agent=cursor
      ```

      ```bash Claude Code theme={null}
      davia init --agent=claude-code
      ```

      ```bash Github Copilot theme={null}
      davia init --agent=github-copilot
      ```

      ```bash Open Code theme={null}
      davia init --agent=open-code
      ```

      ```bash Windsurf theme={null}
      davia init --agent=windsurf
      ```
    </CodeGroup>

    If you don't want to link your IDE's agent, simply run <code>davia init</code>.
  </Step>

  <Step title="Generate documentation with your AI agent">
    Open your AI coding agent in this repository and ask it to document your codebase using Davia.

    For example, you might say:

    ```
    Generate an interactive documentation for this project,
    include visualizations and editable whiteboards.
    ```

    Your agent will use Davia’s paradigm to create interactive documents (diagrams, flows, and editable spaces) directly from your code and project structure.
  </Step>

  <Step title="View your documentation locally">
    Once your agent has generated the documentation, open the Davia workspace to visualize the generated wiki:

    ```bash theme={null}
    davia open
    ```

    This will open the workspace in your browser.
    If the page doesn’t load immediately, simply refresh your browser tab and the doc should appear.
  </Step>

  <Step title="Sync your workspace to the cloud">
    When you’re happy with the local wiki, push it to the cloud so you can collaborate with your team in real time:

    ```bash theme={null}
    davia push
    ```

    This command will:

    * Ask you to log in if you haven’t already (via a browser window)
    * Create a new workspace for your project
    * Upload your generated documentation
    * Open the cloud workspace in your browser
  </Step>
</Steps>

<Card icon="eye" horizontal href="what-is-davia" arrow="true">
  See Davia in action!
</Card>

***

<Note>
  <strong>Not yet supported:</strong> updating an existing cloud workspace
  you’ve already pushed. <br />
  For now, each <code>davia push</code> creates a new workspace. Support for updating
  an existing workspace is coming soon.
</Note>
