# Dev

The `retrodeep dev` command spins up a local development server, allowing you to test and develop your project in an environment similar to Retrodeep's production servers.

## Usage

To start the development server for your project, you can run:

```bash
retrodeep dev
```

This command will serve the current directory on a local server. If you need to serve a different directory or specify a port, you can use the additional flags provided.

#### Specifying a Custom Directory

To start a development server with a custom directory path:

```bash
retrodeep dev --dir /path/to/your/project
```

#### Specifying a Custom Port

By default, `retrodeep dev` serves your application on port `3000`. To specify a different port, use the `-p` or `--port` option:

```bash
retrodeep dev --port 5000
```

This will start the development server on port `5000`.

### Interactive Development

While the `retrodeep dev` server is running, any changes made to your project files will automatically be reloaded in the development server, providing a real-time development experience.

### Available Options

* `-p, --port <port>` - Specify a custom port to listen on.
* `-d, --dir <dir_path>` - Specify a custom directory path for the server to serve.
* `-h, --help` - Display help information for the `dev` command.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.retrodeep.com/retrodeep-cli/dev.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
