OptionsOn ganache-cli itself
-a--accounts
Specify the number of accounts to generate at startup <number>
-e--defaultBalanceEther
Amount of ether to assign each test account. Default is 100 <number>
-b--blockTime
Specify blockTime in seconds for automatic mining. If you don't specify this flag, ganache will instantly mine a new block for every transaction <seconds>
-d--deterministic
Generate deterministic addresses based on a pre-defined mnemonic
-n--secure
Lock available accounts by default (good for third party transaction signing)
-m--mnemonic
Use a bip39 mnemonic phrase for generating a PRNG seed, which is in turn used for hierarchical deterministic (HD) account generation
-p--port
Port number to listen on. Defaults to 8545 <port number>
-h--host
Hostname to listen on. Defaults to 127.0.0.1 (defaults to 0.0.0.0 for Docker instances of ganache-cli) <Hostname>
-s--seed
Use arbitrary data to generate the HD wallet mnemonic to be used
-g--gasPrice
The price of gas in wei (defaults to 20000000000) <price>
-l--gasLimit
The block gas limit (defaults to 0x6691b7) <limit>
--callGasLimit
Sets the transaction gas limit for eth_call and eth_estimateGas calls <limit>
-k--hardfork
Allows users to specify which hardfork should be used <hardfork>
-f--fork
Fork from another currently running Ethereum client at a given block. Input should be the HTTP location and port of the other client <HTTP location & port>
-i--networkId
Specify the network id ganache-cli will use to identify itself (defaults to the current time or the network id of the forked blockchain if configured) <Network ID>
--chainId
Specify the Chain ID ganache-cli will use for eth_chainId RPC and the CHAINID opcode <Chain ID>
--db
Specify a path to a directory to save the chain database. If a database already exists, ganache-cli will initialize that chain instead of creating a new one <folder>
--debug
Output VM opcodes for debugging
--mem
Output ganache-cli memory usage statistics. This replaces normal output
-q--quiet
Run ganache-cli without any logs
-?--help
Display help information
--version
Display the version of ganache-cli
--account_keys_path--acctKeys
Specifies a file to save accounts and private keys to, for testing <file>
--noVMErrorsOnRPCResponse
Do not transmit transaction failures as RPC errors
--allowUnlimitedContractSize
Allows unlimited contract sizes while debugging
--keepAliveTimeout
Sets the HTTP server's keepAliveTimeout in milliseconds <timeout>
-t--time
Date (ISO 8601) that the first block should start <date>
--account
Specify any number of times passing arbitrary private keys and their associated balances to generate initial addresses <<privatekey>, balance>
-u--unlock
Specify any number of times passing either an address or an account index to unlock specific accounts <address or account index>