Starts a local development environment: a local Hardhat blockchain and a local Next.js frontend server.
dapp-launchpad dev [options]
Option
Description
-n, --fork-network-name [NAME]
Name of the network to fork. By default, starts a new chain from genesis block. (choices: "ethereum", "goerli", "polygonPos", "polygonAmoy", "polygonZkevm", "polygonZkevmTestnet")
-b, --fork-block-num [number]
Block number to fork at. Defaults to the latest block.
-r, --reset-on-change
Resets the entire local blockchain when any code changes. For forked mode, resets back to the forked block number. Not enabled by default.
--only-smart-contracts
Deploys only smart contracts and updates smart contract configs for the frontend. Does not start the frontend dev environment.
--only-frontend
Starts only the frontend dev server. Does not start the local blockchain. Smart contract 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. Not enabled by default. Requires a free account at https://app.tryethernal.com/.
--ethernal-login-email [EMAIL]
Ethernal login email. Required only when --enable-explorer is set. Overrides the ETHERNAL_EMAIL environment variable.
--ethernal-login-password [PASSWORD]
Ethernal login password. Required only when --enable-explorer is set. Overrides the ETHERNAL_PASSWORD environment variable.
--ethernal-workspace [WORKSPACE]
Ethernal workspace name. Required only when --enable-explorer is set. Overrides the ETHERNAL_WORKSPACE environment variable.
Deploys smart contracts and the frontend app to production.
dapp-launchpad deploy -n CHAIN_NAME
Option
Description
-n, --network-name
Name of the network to deploy smart contracts to. (choices: "ethereum", "goerli", "polygonPos", "polygonAmoy", "polygonZkevm", "polygonZkevmTestnet")
--only-smart-contracts
Deploys only smart contracts and updates the smart contracts config for the frontend.
--only-frontend
Deploys only the frontend. Smart contract data is read from the smart contracts config, which must exist already. To generate it manually, use generate smart-contracts-config.