{
  "description": "Create, build and deploy an Azion project and read function logs. Login, profiles, dev server, sync and the other commands are left out.",
  "name": "azion",
  "subcommands": [
    {
      "name": "init",
      "description": "Create a project",
      "options": [
        {
          "names": [
            "--name"
          ],
          "description": "Creates the project in a folder with this name.",
          "args": {
            "name": "name",
            "description": "Creates the project in a folder with this name.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--package-manager"
          ],
          "description": "Package manager",
          "args": {
            "name": "package_manager",
            "isOptional": false,
            "suggestions": [
              {
                "name": "npm",
                "description": "npm"
              },
              {
                "name": "yarn",
                "description": "Yarn"
              },
              {
                "name": "pnpm",
                "description": "pnpm"
              }
            ]
          }
        },
        {
          "names": [
            "--auto"
          ],
          "description": "Skip the final questions"
        },
        {
          "names": [
            "--local"
          ],
          "description": "Build and deploy locally"
        },
        {
          "names": [
            "--skip-framework-build"
          ],
          "description": "Skip the framework build"
        }
      ]
    },
    {
      "name": "build",
      "description": "Build the project",
      "options": [
        {
          "names": [
            "--config-file"
          ],
          "description": "azion.config file",
          "args": {
            "name": "config_file",
            "isOptional": false,
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--config-dir"
          ],
          "description": "Folder holding azion.json and args.json. Default azion.",
          "args": {
            "name": "config_dir",
            "description": "Folder holding azion.json and args.json. Default azion.",
            "isOptional": false,
            "template": "folders"
          }
        },
        {
          "names": [
            "--entry"
          ],
          "description": "Default ./main.js.",
          "args": {
            "name": "entry",
            "description": "Default ./main.js.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--preset"
          ],
          "description": "Names are the ones azion list presets prints.",
          "args": {
            "name": "preset",
            "description": "Names are the ones azion list presets prints.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--skip-framework-build"
          ],
          "description": "Skip the framework build"
        }
      ]
    },
    {
      "name": "deploy",
      "description": "Deploy the project",
      "options": [
        {
          "names": [
            "--path"
          ],
          "description": "Static files folder",
          "args": {
            "name": "path",
            "isOptional": false,
            "template": "folders"
          }
        },
        {
          "names": [
            "--local"
          ],
          "description": "Build and deploy locally"
        },
        {
          "names": [
            "--dry-run"
          ],
          "description": "List the steps without running them."
        },
        {
          "names": [
            "--auto"
          ],
          "description": "Do not ask questions"
        },
        {
          "names": [
            "--no-prompt"
          ],
          "description": "Fail instead of prompting"
        },
        {
          "names": [
            "--skip-build"
          ],
          "description": "Skip the build"
        },
        {
          "names": [
            "--skip-framework-build"
          ],
          "description": "Skip the framework build"
        },
        {
          "names": [
            "--sync"
          ],
          "description": "Sync azion.json with remote"
        },
        {
          "names": [
            "--env"
          ],
          "description": "Default .edge/.env.",
          "args": {
            "name": "env",
            "description": "Default .edge/.env.",
            "isOptional": false,
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--config-file"
          ],
          "description": "azion.config file",
          "args": {
            "name": "config_file",
            "isOptional": false,
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--workers"
          ],
          "description": "Upload workers",
          "args": {
            "name": "workers",
            "isOptional": false
          }
        }
      ]
    },
    {
      "name": "logs",
      "subcommands": [
        {
          "name": "cells",
          "description": "Function logs",
          "options": [
            {
              "names": [
                "--function-id"
              ],
              "description": "Without it, shows logs of every function.",
              "args": {
                "name": "function_id",
                "description": "Without it, shows logs of every function.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--limit"
              ],
              "description": "Entries at a time",
              "args": {
                "name": "limit",
                "isOptional": false
              }
            },
            {
              "names": [
                "--pretty"
              ],
              "description": "Formatted layout"
            },
            {
              "names": [
                "--tail"
              ],
              "description": "Follow"
            }
          ]
        }
      ]
    }
  ]
}
