{
  "id": "enapter",
  "name": "Enapter CLI",
  "description": "Cross-platform device management command-line tool for the Enapter Energy Management System Toolkit.",
  "executables": [
    "enapter"
  ],
  "commands": {
    "format": 1,
    "label": "Enapter",
    "description": "Upload a blueprint to a device or run a device command. Logs, rules and other subcommands are left out.",
    "quality": "ai-draft",
    "base": "fig:enapter",
    "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/enapter.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "devices",
          "upload"
        ],
        "label": "Upload blueprint",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/enapter.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "hardware_id",
            "label": "Hardware ID (UCM ID)",
            "description": "Can be obtained in cloud.enapter.com.",
            "type": "string",
            "option": [
              "--hardware-id"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "blueprint_dir",
            "label": "Blueprint directory",
            "type": "path",
            "option": [
              "--blueprint-dir"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "upload",
            "label": "Upload blueprint",
            "fields": [
              "hardware_id",
              "blueprint_dir"
            ],
            "required": [
              "hardware_id",
              "blueprint_dir"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "hardware_id",
              "blueprint_dir"
            ]
          }
        ]
      },
      {
        "path": [
          "devices",
          "execute"
        ],
        "label": "Execute device command",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/enapter.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "hardware_id",
            "label": "Hardware ID (UCM ID)",
            "description": "Can be obtained in cloud.enapter.com.",
            "type": "string",
            "option": [
              "--hardware-id"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Command name",
            "type": "string",
            "option": [
              "--command"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "arguments",
            "label": "Arguments (JSON object)",
            "type": "string",
            "option": [
              "--arguments"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "show_progress",
            "label": "Stream in-progress responses",
            "type": "boolean",
            "option": [
              "--show-progress"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "execute",
            "label": "Execute command",
            "fields": [
              "hardware_id",
              "command",
              "arguments",
              "show_progress"
            ],
            "required": [
              "hardware_id",
              "command"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "hardware_id",
              "command",
              "arguments",
              "show_progress"
            ]
          }
        ]
      }
    ]
  }
}
