{
  "name": "deta",
  "description": "Deta CLI for managing Deta Micros",
  "subcommands": [
    {
      "name": "login",
      "description": "Trigger the login process for the Deta CLI",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for login"
        }
      ]
    },
    {
      "name": "version",
      "description": "Print the Deta version",
      "subcommands": [
        {
          "name": "upgrade",
          "description": "Upgrade Deta CLI version",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for upgrade"
            },
            {
              "names": [
                "-v"
              ],
              "description": "Upgrade CLI to specific version",
              "takes_arg": true,
              "arg": {
                "name": "Version number"
              }
            }
          ]
        }
      ],
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for version"
        }
      ]
    },
    {
      "name": "projects",
      "description": "List Deta projects",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for projects"
        }
      ]
    },
    {
      "name": "new",
      "description": "Create a new Deta Micro",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for new"
        },
        {
          "names": [
            "-n"
          ],
          "description": "Create a micro with Node (node14.x) runtime"
        },
        {
          "names": [
            "-p"
          ],
          "description": "Create a micro with Python (python 3.9) runtime"
        },
        {
          "names": [
            "--name"
          ],
          "description": "Set the name of the new micro",
          "takes_arg": true,
          "arg": {
            "name": "name",
            "description": "Name of the new micro"
          }
        },
        {
          "names": [
            "--project"
          ],
          "description": "Set the project under which the micro is created",
          "takes_arg": true,
          "arg": {
            "name": "project",
            "description": "Name of the existing project"
          }
        },
        {
          "names": [
            "--runtime"
          ],
          "description": "Create a micro with a specified runtime",
          "takes_arg": true,
          "arg": {
            "name": "runtime",
            "description": "The selected runtime",
            "suggestions": [
              "node12",
              "node14",
              "python3.7",
              "python3.9"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "path",
          "description": "Path to new directory for the micro"
        }
      ]
    },
    {
      "name": "deploy",
      "description": "Deploy new code to a Deta Micro",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for deploy"
        }
      ],
      "args": [
        {
          "name": "path",
          "description": "Path to project directory",
          "template": "folders"
        }
      ]
    },
    {
      "name": "details",
      "description": "Get detailed information about a specific Deta micro",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for details"
        }
      ],
      "args": [
        {
          "name": "path",
          "description": "Path to project directory",
          "template": "folders"
        }
      ]
    },
    {
      "name": "watch",
      "description": "Auto-deploy locally saved changes in real time to your Deta micro",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for watch"
        }
      ],
      "args": [
        {
          "name": "path",
          "description": "Path to project directory",
          "template": "folders"
        }
      ]
    },
    {
      "name": "auth",
      "description": "Change auth settings for a Deta Micro",
      "subcommands": [
        {
          "name": "disable",
          "description": "Disable HTTP Auth for a Deta Micro",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for auth disable"
            }
          ]
        },
        {
          "name": "enable",
          "description": "Enable HTTP Auth for a Deta Micro",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for auth enable"
            }
          ]
        },
        {
          "name": "create-api-key",
          "description": "Create an API key for a Deta Micro",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for auth create-api-key"
            },
            {
              "names": [
                "-d"
              ],
              "description": "Set the api-key description",
              "takes_arg": true,
              "arg": {
                "name": "description",
                "description": "The api-key description"
              }
            },
            {
              "names": [
                "-n"
              ],
              "description": "Set the api-key name",
              "takes_arg": true,
              "arg": {
                "name": "name",
                "description": "The api-key name"
              },
              "is_required": true
            },
            {
              "names": [
                "-o"
              ],
              "description": "Set the api-key output file",
              "takes_arg": true,
              "arg": {
                "name": "outfile",
                "description": "The api-key output file",
                "template": "filepaths"
              }
            }
          ]
        },
        {
          "name": "delete-api-key",
          "description": "Delete an API key for a Deta Micro",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for auth delete-api-key"
            },
            {
              "names": [
                "-n"
              ],
              "description": "Set the api-key name",
              "takes_arg": true,
              "arg": {
                "name": "name",
                "description": "The api-key name"
              },
              "is_required": true
            }
          ]
        }
      ],
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for auth"
        }
      ]
    },
    {
      "name": "pull",
      "description": "Pull the latest deployed code of a Deta Micro to your local machine",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for pull"
        },
        {
          "names": [
            "-f"
          ],
          "description": "Force the overwrite of existing files"
        }
      ]
    },
    {
      "name": "clone",
      "description": "Clone a Deta Micro",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for clone"
        },
        {
          "names": [
            "-n"
          ],
          "description": "The name of the micro to be cloned",
          "takes_arg": true,
          "arg": {
            "name": "name",
            "description": "Name of the micro"
          },
          "is_required": true
        },
        {
          "names": [
            "-p"
          ],
          "description": "The name of the project with the micro to be cloned",
          "takes_arg": true,
          "arg": {
            "name": "project",
            "description": "Name of the project"
          }
        }
      ],
      "args": [
        {
          "name": "path",
          "description": "Path to new directory for the clone"
        }
      ]
    },
    {
      "name": "update",
      "description": "Update a Deta Micro's name or environment variables",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for pull"
        },
        {
          "names": [
            "-n"
          ],
          "description": "The new name of the micro",
          "takes_arg": true,
          "arg": {
            "name": "name",
            "description": "New name for the micro"
          }
        },
        {
          "names": [
            "-r"
          ],
          "description": "The new runtime of the micro",
          "takes_arg": true,
          "arg": {
            "name": "runtime",
            "description": "New runtime for the micro",
            "suggestions": [
              "node12",
              "node14",
              "python3.7",
              "python3.9"
            ]
          }
        },
        {
          "names": [
            "-e"
          ],
          "description": "The new env file of the micro",
          "takes_arg": true,
          "arg": {
            "name": "env",
            "description": "Path to env file",
            "template": "filepaths"
          }
        }
      ]
    },
    {
      "name": "visor",
      "description": "Change the Visor settings for a Deta Micro",
      "subcommands": [
        {
          "name": "open",
          "description": "Open Micro's visor page in the browser",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for visor open"
            }
          ]
        },
        {
          "name": "enable",
          "description": "Enable Visor for a Deta Micro",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for visor enable"
            }
          ]
        },
        {
          "name": "disable",
          "description": "Disable Visor for a Deta Micro",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for visor disable"
            }
          ]
        }
      ],
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for visor"
        }
      ]
    },
    {
      "name": "run",
      "description": "Run a Deta Micro from the CLI",
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for run"
        },
        {
          "names": [
            "-l"
          ],
          "description": "Show the micro logs"
        }
      ],
      "args": [
        {
          "name": "action",
          "description": "The action to be performed on the micro. See docs for full examples and details"
        }
      ]
    },
    {
      "name": "cron",
      "description": "Change cron settings for a Deta Micro",
      "subcommands": [
        {
          "name": "set",
          "description": "Set Deta Micro to run on a schedule",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for cron set"
            }
          ],
          "args": [
            {
              "name": "expression",
              "description": "The cron expression to be set"
            }
          ]
        },
        {
          "name": "remove",
          "description": "Remove a schedule from a Deta Micro",
          "options": [
            {
              "names": [
                "-h"
              ],
              "description": "Show help for cron remove"
            }
          ],
          "args": [
            {
              "name": "expression",
              "description": "The cron expression to be removed"
            }
          ]
        }
      ],
      "options": [
        {
          "names": [
            "-h"
          ],
          "description": "Show help for cron"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "-h"
      ],
      "description": "Show help for deta"
    }
  ]
}
