{
  "description": "Send one RPC command to a running lightningd, such as getinfo or listpeers. Only lightning-cli is covered; lightningd and lightning-hsmtool are not.",
  "options": [
    {
      "names": [
        "--lightning-dir"
      ],
      "description": "Lightning directory",
      "args": {
        "name": "lightning_dir",
        "isOptional": false,
        "template": "folders"
      }
    },
    {
      "names": [
        "--network"
      ],
      "description": "Network",
      "args": {
        "name": "network",
        "isOptional": false,
        "suggestions": [
          {
            "name": "bitcoin",
            "description": "Mainnet"
          },
          {
            "name": "testnet",
            "description": "Testnet"
          },
          {
            "name": "signet",
            "description": "Signet"
          },
          {
            "name": "regtest",
            "description": "Regtest"
          }
        ]
      }
    },
    {
      "names": [
        "--rpc-file"
      ],
      "description": "RPC socket file",
      "args": {
        "name": "rpc_file",
        "isOptional": false,
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--keywords",
        "-k"
      ],
      "description": "Pass arguments as key=value in any order."
    },
    {
      "names": [
        "--human-readable",
        "-H"
      ],
      "description": "Human-readable output"
    },
    {
      "names": [
        "--raw",
        "-R"
      ],
      "description": "Raw JSON output"
    }
  ],
  "args": [
    {
      "name": "command",
      "description": "For example getinfo, listpeers, listfunds or help.",
      "isOptional": false,
      "suggestions": [
        {
          "name": "getinfo",
          "description": "getinfo"
        },
        {
          "name": "listpeers",
          "description": "listpeers"
        },
        {
          "name": "listfunds",
          "description": "listfunds"
        },
        {
          "name": "help",
          "description": "help"
        }
      ]
    },
    {
      "name": "args",
      "description": "Positional values, or key=value pairs when Keyword parameters is on.",
      "isOptional": true,
      "isVariadic": true
    }
  ],
  "name": "lightningd",
  "aliases": [
    "lightning-cli",
    "lightning-hsmtool"
  ]
}
