{
  "description": "Export, validate or format CUE configuration. Other subcommands, value injection, protobuf and non-CUE file options are left out.",
  "name": "cue",
  "subcommands": [
    {
      "name": "export",
      "description": "Export as JSON, YAML or TOML",
      "options": [
        {
          "names": [
            "--out"
          ],
          "description": "Output format",
          "args": {
            "name": "out",
            "isOptional": false,
            "suggestions": [
              {
                "name": "cue",
                "description": "CUE"
              },
              {
                "name": "json",
                "description": "JSON"
              },
              {
                "name": "toml",
                "description": "TOML"
              },
              {
                "name": "yaml",
                "description": "YAML"
              },
              {
                "name": "text",
                "description": "Text"
              },
              {
                "name": "binary",
                "description": "Binary"
              }
            ]
          }
        },
        {
          "names": [
            "--expression",
            "-e"
          ],
          "description": "Export this expression only; repeatable.",
          "args": {
            "name": "expression",
            "description": "Export this expression only; repeatable.",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--outfile",
            "-o"
          ],
          "description": "Output file",
          "args": {
            "name": "outfile",
            "isOptional": false,
            "template": "filepaths"
          },
          "isDangerous": true
        },
        {
          "names": [
            "--force",
            "-f"
          ],
          "description": "Overwrite existing files",
          "isDangerous": true
        }
      ],
      "args": [
        {
          "name": "inputs",
          "description": "Packages, CUE files or data files; empty means the current package.",
          "isOptional": true,
          "isVariadic": true,
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "vet",
      "description": "Validate data against CUE",
      "options": [
        {
          "names": [
            "--concrete",
            "-c"
          ],
          "description": "Require concrete values"
        },
        {
          "names": [
            "--schema",
            "-d"
          ],
          "description": "Expression selecting the schema used to check non-CUE data files.",
          "args": {
            "name": "schema",
            "description": "Expression selecting the schema used to check non-CUE data files.",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "inputs",
          "description": "Packages, CUE files or data files; empty means the current package.",
          "isOptional": true,
          "isVariadic": true,
          "template": "filepaths"
        }
      ]
    },
    {
      "name": "fmt",
      "description": "Format CUE files",
      "options": [
        {
          "names": [
            "--check"
          ],
          "description": "Exit non-zero if any file is not formatted."
        },
        {
          "names": [
            "--diff",
            "-d"
          ],
          "description": "Show diffs instead of rewriting"
        },
        {
          "names": [
            "--files"
          ],
          "description": "Recursively format the given files or directories."
        }
      ],
      "args": [
        {
          "name": "inputs",
          "description": "Packages, CUE files or data files; empty means the current package.",
          "isOptional": true,
          "isVariadic": true,
          "template": "filepaths"
        }
      ]
    }
  ]
}
