{
  "id": "okteto",
  "name": "Okteto",
  "homepage": "https://www.okteto.com",
  "description": "A Tool to Develop Applications on Kubernetes.",
  "icon": "https://www.okteto.com/apple-touch-icon.png",
  "executables": [
    "okteto"
  ],
  "dotfiles": {
    "paths": [
      "~/.okteto/context/config.json"
    ],
    "exclude": [
      "~/.okteto/analytics.json",
      "~/.okteto/.noanalytics",
      "~/.okteto/.ca.crt"
    ],
    "secret": [
      "~/.okteto/.token.json"
    ],
    "secret_paths": [
      {
        "file": "~/.okteto/context/config.json",
        "match": {
          "key_path": [
            "contexts.*.token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Okteto",
    "description": "Start development containers and build images. Other subcommands are left out.",
    "quality": "ai-draft",
    "base": "fig:okteto",
    "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/okteto.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "up"
        ],
        "label": "Activate dev container",
        "description": "Start the development container from the okteto manifest.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/okteto.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file",
            "label": "Manifest file",
            "type": "path",
            "option": [
              "--file",
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "namespace",
            "label": "Namespace",
            "type": "string",
            "option": [
              "--namespace",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "context",
            "label": "Context",
            "type": "string",
            "option": [
              "--context",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "build",
            "label": "Build dev image",
            "type": "boolean",
            "option": [
              "--build"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "deploy",
            "label": "Create deployment if missing",
            "type": "boolean",
            "option": [
              "--deploy",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "pull",
            "label": "Force image pull",
            "type": "boolean",
            "option": [
              "--pull"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "reset",
            "label": "Reset sync database",
            "type": "boolean",
            "option": [
              "--reset"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "up",
            "label": "Start dev container",
            "fields": [
              "file",
              "namespace",
              "context",
              "build",
              "deploy"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file",
              "namespace",
              "context",
              "build",
              "deploy"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "pull",
              "reset"
            ]
          }
        ]
      },
      {
        "path": [
          "build"
        ],
        "label": "Build an image",
        "description": "Build and push a Docker image. Positional path is not modelled.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/okteto.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "tag",
            "label": "Tag",
            "description": "name:tag",
            "type": "string",
            "option": [
              "--tag",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "file",
            "label": "Dockerfile",
            "type": "path",
            "option": [
              "--file",
              "-f"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_cache",
            "label": "No cache",
            "type": "boolean",
            "option": [
              "--no-cache"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "build_arg",
            "label": "Build args",
            "description": "KEY=value",
            "type": "string",
            "option": [
              "--build-arg"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "target",
            "label": "Target stage",
            "type": "string",
            "option": [
              "--target"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "namespace",
            "label": "Namespace",
            "type": "string",
            "option": [
              "--namespace"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build and tag",
            "fields": [
              "tag",
              "file",
              "build_arg"
            ],
            "required": [
              "tag"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "tag",
              "file",
              "no_cache",
              "build_arg",
              "target",
              "namespace"
            ]
          }
        ]
      }
    ]
  }
}
