{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/ganache-cli.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "port",
        "label": "Port",
        "description": "Default 8545.",
        "type": "integer",
        "option": [
          "--port",
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "host",
        "label": "Host",
        "type": "string",
        "option": [
          "--host",
          "-h"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "accounts",
        "label": "Number of accounts",
        "type": "integer",
        "option": [
          "--accounts",
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "balance",
        "label": "Ether per account",
        "type": "number",
        "option": [
          "--defaultBalanceEther",
          "-e"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "block_time",
        "label": "Block time (seconds)",
        "type": "integer",
        "option": [
          "--blockTime",
          "-b"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "deterministic",
        "label": "Deterministic addresses",
        "type": "boolean",
        "option": [
          "--deterministic",
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "fork",
        "label": "Fork from RPC URL",
        "type": "string",
        "option": [
          "--fork",
          "-f"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "network_id",
        "label": "Network ID",
        "type": "integer",
        "option": [
          "--networkId",
          "-i"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "chain_id",
        "label": "Chain ID",
        "type": "integer",
        "option": [
          "--chainId"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "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"
        ]
      },
      {
        "id": "db",
        "label": "Chain database directory",
        "type": "path",
        "option": [
          "--db"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "local",
        "label": "Local test chain",
        "fields": [
          "port",
          "accounts",
          "deterministic"
        ],
        "required": []
      },
      {
        "id": "fork",
        "label": "Fork a network",
        "fields": [
          "fork",
          "port",
          "chain_id"
        ],
        "required": [
          "fork"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "port",
          "host",
          "accounts",
          "balance",
          "deterministic",
          "fork"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "block_time",
          "network_id",
          "chain_id",
          "hardfork",
          "db",
          "quiet"
        ]
      }
    ]
  }
}
