{
  "name": "homey",
  "subcommands": [
    {
      "name": "app",
      "description": "App related commands",
      "subcommands": [
        {
          "name": "add-types",
          "description": "Install the Apps SDK TypeScript declarations"
        },
        {
          "name": "build",
          "description": "Build a Homey App for publishing"
        },
        {
          "name": "compose",
          "description": "Migrate app to Homey compose"
        },
        {
          "name": "create",
          "description": "Create a new Homey App"
        },
        {
          "name": "discovery",
          "description": "Discovery related commands",
          "subcommands": [
            {
              "name": "create",
              "description": "Create a new Discovery strategy"
            }
          ]
        },
        {
          "name": "driver",
          "description": "Driver related commands",
          "subcommands": [
            {
              "name": "capabilities",
              "description": "Change the capabilities of a Driver"
            },
            {
              "name": "create",
              "description": "Create a new Driver"
            },
            {
              "name": "flow",
              "description": "Create a new Flow for a Driver"
            }
          ]
        },
        {
          "name": "flow",
          "description": "Flow related commands",
          "subcommands": [
            {
              "name": "create",
              "description": "Create a new Flow"
            }
          ]
        },
        {
          "name": "install",
          "description": "Install a Homey App",
          "options": [
            {
              "names": [
                "-c",
                "--clean"
              ],
              "takes_arg": true,
              "arg": {
                "name": "clean",
                "suggestions": [
                  "false",
                  "true"
                ]
              }
            },
            {
              "names": [
                "-s",
                "--skip-build"
              ],
              "takes_arg": true,
              "arg": {
                "name": "skip-build",
                "suggestions": [
                  "false",
                  "true"
                ]
              }
            }
          ]
        },
        {
          "name": "manage",
          "description": "View your app in the Homey Developer Tools"
        },
        {
          "name": "publish",
          "description": "Publish a Homey App to the Homey Apps Store"
        },
        {
          "name": "run",
          "description": "Run a Homey App in development mode",
          "options": [
            {
              "names": [
                "-c",
                "--clean"
              ],
              "takes_arg": true,
              "arg": {
                "name": "clean",
                "suggestions": [
                  "false",
                  "true"
                ]
              }
            },
            {
              "names": [
                "-s",
                "--skip-build"
              ],
              "takes_arg": true,
              "arg": {
                "name": "skip-build",
                "suggestions": [
                  "false",
                  "true"
                ]
              }
            },
            {
              "names": [
                "-l",
                "--link-modules"
              ],
              "description": "Provide a comma-separated path to local Node.js modules to link. Only works on Homey Cloud",
              "takes_arg": true,
              "arg": {
                "name": "modules"
              }
            }
          ]
        },
        {
          "name": "validate",
          "description": "Validate a Homey App",
          "options": [
            {
              "names": [
                "-l",
                "--level"
              ],
              "description": "Validation level",
              "takes_arg": true,
              "arg": {
                "name": "value",
                "suggestions": [
                  "debug",
                  "publish",
                  "verified"
                ]
              }
            }
          ]
        },
        {
          "name": "version",
          "description": "Update a Homey App's version",
          "args": [
            {
              "name": "next",
              "suggestions": [
                "patch",
                "minor",
                "major",
                "semver"
              ]
            }
          ]
        },
        {
          "name": "view",
          "description": "View your app in the Homey Apps Store"
        }
      ],
      "options": [
        {
          "names": [
            "-p",
            "--path"
          ],
          "description": "Path to a Homey App directory",
          "takes_arg": true,
          "arg": {
            "template": "folders"
          }
        }
      ]
    },
    {
      "name": "docs",
      "description": "Open Homey Developer Documentation"
    },
    {
      "name": "list",
      "description": "List all Homeys"
    },
    {
      "name": "login",
      "description": "Log in with an Athom Account"
    },
    {
      "name": "logout",
      "description": "Log out the current user"
    },
    {
      "name": "select",
      "description": "Select a Homey as active",
      "options": [
        {
          "names": [
            "-i",
            "--id"
          ],
          "description": "ID of the Homey",
          "takes_arg": true,
          "arg": {
            "name": "id"
          }
        },
        {
          "names": [
            "-n",
            "--name"
          ],
          "description": "Name of the Homey",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        }
      ]
    },
    {
      "name": "tools",
      "description": "Open Homey Developer Tools"
    },
    {
      "name": "unselect",
      "description": "Unselect the active Homey"
    },
    {
      "name": "whoami",
      "description": "Show the current logged in user"
    }
  ],
  "options": [
    {
      "names": [
        "--help"
      ]
    },
    {
      "names": [
        "--version"
      ]
    }
  ]
}
