id = "ganache-cli" name = "ganache-cli" description = "A fast Ethereum RPC client for testing and development." homepage = "https://github.com/trufflesuite/ganache" executables = ["ganache-cli"] [commands] format = 1 label = "Start local Ethereum node" description = "Run a local test chain. Per-account keys, unlock lists and mnemonic options are left out." quality = "ai-draft" base = "fig:ganache-cli" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ganache-cli.ts" license = "MIT" [[commands.field]] id = "port" label = "Port" description = "Default 8545." type = "integer" option = ["--port", "-p"] sources = ["fig"] [[commands.field]] id = "host" label = "Host" type = "string" option = ["--host", "-h"] sources = ["fig"] [[commands.field]] id = "accounts" label = "Number of accounts" type = "integer" option = ["--accounts", "-a"] sources = ["fig"] [[commands.field]] id = "balance" label = "Ether per account" type = "number" option = ["--defaultBalanceEther", "-e"] sources = ["fig"] [[commands.field]] id = "block_time" label = "Block time (seconds)" type = "integer" option = ["--blockTime", "-b"] sources = ["fig"] [[commands.field]] id = "deterministic" label = "Deterministic addresses" type = "boolean" option = ["--deterministic", "-d"] sources = ["fig"] [[commands.field]] id = "fork" label = "Fork from RPC URL" type = "string" option = ["--fork", "-f"] sources = ["fig"] [[commands.field]] id = "network_id" label = "Network ID" type = "integer" option = ["--networkId", "-i"] sources = ["fig"] [[commands.field]] id = "chain_id" label = "Chain ID" type = "integer" option = ["--chainId"] sources = ["fig"] [[commands.field]] id = "hardfork" label = "Hardfork" type = "string" option = ["--hardfork", "-k"] suggestions = [{ value = "byzantium", label = "byzantium" }, { value = "constantinople", label = "constantinople" }, { value = "petersburg", label = "petersburg" }, { value = "istanbul", label = "istanbul" }, { value = "muirGlacier", label = "muirGlacier" }] sources = ["fig"] [[commands.field]] id = "db" label = "Chain database directory" type = "path" option = ["--db"] path = { kind = "directory", role = "output" } sources = ["fig"] [[commands.field]] id = "quiet" label = "Quiet" type = "boolean" option = ["--quiet", "-q"] sources = ["fig"] [[commands.task]] id = "local" label = "Local test chain" fields = ["port", "accounts", "deterministic"] required = [] [[commands.task]] id = "fork" label = "Fork a network" fields = ["fork", "port", "chain_id"] required = ["fork"] [[commands.group]] id = "basic" label = "Basic" fields = ["port", "host", "accounts", "balance", "deterministic", "fork"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["block_time", "network_id", "chain_id", "hardfork", "db", "quiet"]