{
  "id": "vault",
  "name": "Vault",
  "homepage": "https://developer.hashicorp.com/vault",
  "description": "Vault is a tool for securely accessing secrets.",
  "icon": "SimpleIcons:vault",
  "executables": [
    "vault"
  ],
  "dotfiles": {
    "paths": [
      "~/.vault"
    ],
    "exclude": [],
    "secret": [
      "~/.vault-token"
    ],
    "side_effect": false,
    "machine_lines": [
      {
        "file": "~/.vault",
        "match": {
          "prefix": [
            "token_helper"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Vault",
    "description": "HashiCorp Vault CLI. Forms cover read, kv get, kv put and status; auth and server options are left out.",
    "quality": "ai-draft",
    "base": "fig:vault",
    "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/vault.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "read"
        ],
        "label": "Read path",
        "description": "Read data from a Vault path.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vault.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Path",
            "type": "string",
            "position": 0,
            "min": 1,
            "suggestions": [
              {
                "value": "secret/foo",
                "label": "secret/foo"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "field",
            "label": "Only this field",
            "type": "string",
            "option": [
              "-field"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Output format",
            "type": "enum",
            "option": [
              "-format"
            ],
            "choices": [
              {
                "value": "table",
                "label": "table"
              },
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "yaml",
                "label": "yaml"
              },
              {
                "value": "pretty",
                "label": "pretty"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "read",
            "label": "Read",
            "fields": [
              "path",
              "field",
              "format"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "field",
              "format"
            ]
          }
        ]
      },
      {
        "path": [
          "kv",
          "get"
        ],
        "label": "KV get",
        "description": "Get a secret from the key-value store.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vault.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Path",
            "type": "string",
            "position": 0,
            "min": 1,
            "suggestions": [
              {
                "value": "secret/foo",
                "label": "secret/foo"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Output format",
            "type": "enum",
            "option": [
              "-format"
            ],
            "choices": [
              {
                "value": "table",
                "label": "table"
              },
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "yaml",
                "label": "yaml"
              },
              {
                "value": "pretty",
                "label": "pretty"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "get",
            "label": "Get secret",
            "fields": [
              "path",
              "format"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "format"
            ]
          }
        ]
      },
      {
        "path": [
          "kv",
          "put"
        ],
        "label": "KV put",
        "description": "Write key=value pairs to a secret. Values appear in shell history; prefer K=@file.json for sensitive data.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vault.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "key",
            "label": "Path",
            "type": "string",
            "position": 0,
            "min": 1,
            "suggestions": [
              {
                "value": "secret/foo",
                "label": "secret/foo"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "data",
            "label": "Data (K=V)",
            "description": "Pairs like name=value or name=@file.json.",
            "type": "string",
            "position": 1,
            "multiple": true,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cas",
            "label": "Check-and-set version",
            "type": "string",
            "option": [
              "-cas"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "put",
            "label": "Write secret",
            "fields": [
              "key",
              "data"
            ],
            "required": [
              "key",
              "data"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "key",
              "data",
              "cas"
            ]
          }
        ]
      },
      {
        "path": [
          "status"
        ],
        "label": "Status",
        "description": "Print the seal and HA state of the Vault server.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/vault.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "format",
            "label": "Output format",
            "type": "enum",
            "option": [
              "-format"
            ],
            "choices": [
              {
                "value": "table",
                "label": "table"
              },
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "yaml",
                "label": "yaml"
              },
              {
                "value": "pretty",
                "label": "pretty"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "status",
            "label": "Status",
            "fields": [
              "format"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "format"
            ]
          }
        ]
      }
    ]
  }
}
