> For the complete documentation index, see [llms.txt](https://0xpolygon.gitbook.io/dapp-launchpad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xpolygon.gitbook.io/dapp-launchpad/commands/dev.md).

# dev

<pre><code><strong>dapp-launchpad dev [options]
</strong></code></pre>

The `dev` command starts a local dev environment - a local blockchain (Hardhat) and a local FE (Next.js) server.

## Options

| Option                                 | Description                                                                                                                                                                                                      |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-n, --fork-network-name [NAME]`       | Name of the network to fork; optional. By default, it starts a new chain from genesis block. (choices: "ethereum", "goerli", "polygonPos", "polygonMumbai", "polygonZkevm", "polygonZkevmTestnet")               |
| `-b, --fork-block-num [number]`        | Block number to fork at. By default, it's the latest block.                                                                                                                                                      |
| `-r, --reset-on-change`                | Resets the entire local blockchain when any code is changed; for forked mode, it resets back to forked block number; NOT DEFAULT.                                                                                |
| `--only-smart-contracts`               | Deploys only smart contracts (having started local test chain) and updates Smart contract configs for frontend; does not start frontend dev environment.                                                         |
| `--only-frontend`                      | Deploys only frontend (having started local server); does not start local blockchain. Smart contracts data is read from pre-existing configs. To generate these manually, use `generate smart-contracts-config`. |
| `-e, --enable-explorer`                | Sets up a chain explorer for the local test blockchain started; NOT DEFAULT; sign up at <https://app.tryethernal.com/>.                                                                                          |
| `--ethernal-login-email [EMAIL]`       | Ethernal login email; needed only if `--explorer` is enabled. This overrides env variable `ETHERNAL_EMAIL` if present.                                                                                           |
| `--ethernal-login-password [PASSWORD]` | Ethernal login password; needed only if `--explorer` is enabled. This overrides env variable `ETHERNAL_PASSWORD` if present.                                                                                     |
| `--ethernal-workspace [WORKSPACE]`     | Ethernal workspace name; needed only if `--explorer` is enabled. This overrides env variable `ETHERNAL_WORKSPACE` if present.                                                                                    |
| `-h, --help`                           | Display help for command                                                                                                                                                                                         |

## Help

To get help, run:

```
dapp-launchpad dev -h
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://0xpolygon.gitbook.io/dapp-launchpad/commands/dev.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
