# Configuration File

By using a configuration file, you can change the connection information. A configuration file is a JSON file as shown below;

{
  "hosts": ["https://localhost:9010/"],
  "fallback": true,
  "extensions": [
    {
      "name": "miyabi.BLS"
    },
    {
      "name": "miyabi.Binary"
    },
    {
      "name": "miyabi.Entity"
    },
    {
      "name": "miyabi.Contract"
    }
  ],
  "clientCert": "\\node\\0.p12",
  "clientCertPwd": "<password>"
}

The following table describes each configuration field:

Field Description
hosts Specifies Miyabi node host information. Multiple destination hosts can be set and the top of the list is used by default.
fallback If multiple destinations are specified, CLI tries to connect one by one from the top of the list until it succeeds.
clientCert Path to PKCS12 file that is used by admin commands.
clientCertPwd Path to a password file containing the raw text password which is used by the PKCS12 file specified by clientCert.
extensions Specifies which modules to load. By default, all modules are loaded automatically and this field might not require any changes.