|
| 1 | +## `init` |
| 2 | + |
| 3 | +Initializes a new project in a new directory which has the same name as the project. If a project name is not mentioned, a random one is chosen. |
| 4 | + |
| 5 | +```sh |
| 6 | +dapp-launchpad init [PROJECT-NAME] |
| 7 | +``` |
| 8 | + |
| 9 | +### Options |
| 10 | + |
| 11 | +| Option | Description | |
| 12 | +|:---------------------:|----------------------------------------| |
| 13 | +| -t, --template [NAME] | Name of the scaffold template to use; default: "javascript". To get list of available templates, run list scaffold-templates. (default: "javascript") | |
| 14 | +| -h, --help | display help for command | |
| 15 | + |
| 16 | +### Help |
| 17 | + |
| 18 | +```sh |
| 19 | +dapp-launchpad init -h |
| 20 | +``` |
| 21 | + |
| 22 | +## `dev` |
| 23 | + |
| 24 | +Starts a local dev environment; a local blockchain (Hardhat) and a local front end (Next.js) server. |
| 25 | + |
| 26 | +```sh |
| 27 | +dapp-launchpad dev [options] |
| 28 | +``` |
| 29 | + |
| 30 | +The `dev` command starts |
| 31 | + |
| 32 | +### Options |
| 33 | + |
| 34 | +| Option | Description | |
| 35 | +|--------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 36 | +| -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") | |
| 37 | +| -b, --fork-block-num [number] | Block number to fork at. By default, it's the latest block. | |
| 38 | +| -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. | |
| 39 | +| --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. | |
| 40 | +| --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. | |
| 41 | +| -e, --enable-explorer | Sets up a chain explorer for the local test blockchain started; NOT DEFAULT; sign up at https://app.tryethernal.com/. | |
| 42 | +| --ethernal-login-email [EMAIL] | Ethernal login email; needed only if --explorer is enabled. This overrides env variable ETHERNAL_EMAIL if present. | |
| 43 | +| --ethernal-login-password [PASSWORD] | Ethernal login password; needed only if --explorer is enabled. This overrides env variable ETHERNAL_PASSWORD if present. | |
| 44 | +| --ethernal-workspace [WORKSPACE] | Ethernal workspace name; needed only if --explorer is enabled. This overrides env variable ETHERNAL_WORKSPACE if present. | |
| 45 | +| -h, --help | Display help for command | |
| 46 | + |
| 47 | +### Help |
| 48 | + |
| 49 | +```sh |
| 50 | +dapp-launchpad dev -h |
| 51 | +``` |
| 52 | + |
| 53 | +## `deploy` |
| 54 | + |
| 55 | +The deploy command deploys the smart contracts and frontend app to production. |
| 56 | + |
| 57 | +```sh |
| 58 | +dapp-launchpad deploy -n CHAIN_NAME |
| 59 | +``` |
| 60 | + |
| 61 | +### Options |
| 62 | + |
| 63 | +| Option | Description | |
| 64 | +|:----------------------:|:-------------------------------------------------------| |
| 65 | +| -n, --network-name | Name of the network to deploy smart contracts to. (choices: "ethereum", "goerli", "polygonPos", "polygonMumbai", "polygonZkevm", "polygonZkevmTestnet") | |
| 66 | +| --only-smart-contracts | Deploys only smart contracts and updates Smart contracts config for frontend. | |
| 67 | +| --only-frontend | Deploys only frontend; smart contracts data is read from Smart contracts config which must pre-exist. To generate these manually, use generate smart-contracts-config | |
| 68 | +| -h, --help | Display help for command | |
| 69 | + |
| 70 | +### Help |
| 71 | + |
| 72 | +```sh |
| 73 | +dapp-launchpad deploy -h |
| 74 | +``` |
| 75 | + |
| 76 | +## `list` |
| 77 | + |
| 78 | +List options. |
| 79 | + |
| 80 | +```sh |
| 81 | +dapp-launchpad list <WHAT TO LIST> |
| 82 | +``` |
| 83 | + |
| 84 | +### `scaffold-templates` |
| 85 | + |
| 86 | +List the available scaffold template languages. |
| 87 | + |
| 88 | +```sh |
| 89 | +dapp-launchpad list scaffold-templates |
| 90 | +``` |
| 91 | + |
| 92 | +## `generate` |
| 93 | + |
| 94 | +Generate the specified. |
| 95 | + |
| 96 | +```sh |
| 97 | +dapp-launchpad generate <WHAT TO GENERATE> |
| 98 | +``` |
| 99 | + |
| 100 | +### `smart-contracts-config` |
| 101 | + |
| 102 | +Generate the smart contract configuration. |
| 103 | + |
| 104 | +```sh |
| 105 | +dapp-launchpad generate smart-contracts-config |
| 106 | +``` |
| 107 | + |
| 108 | +### Options |
| 109 | + |
| 110 | +| Option | Description | |
| 111 | +|:-----------------------:|:-----------------------------------------| |
| 112 | +| -e, --environment <ENV> | Environment where this config would be used (choices: "development", "production", default: "development") | |
| 113 | +| -n, --network-name | Name of the network to generate config for. (choices: "ethereum", "goerli", "polygonPos", "polygonMumbai", "polygonZkevm", "polygonZkevmTestnet") | |
| 114 | +| -h, --help | Display help for command | |
0 commit comments