{
  "id": "doppler",
  "name": "Doppler CLI",
  "homepage": "https://docs.doppler.com/docs/cli",
  "description": "The Doppler CLI is the official tool for interacting with your Doppler secrets and configuration.",
  "icon": "theSVG:doppler",
  "executables": [
    "doppler"
  ],
  "dotfiles": {
    "paths": [
      "~/.doppler/.doppler.yaml"
    ],
    "exclude": [
      "~/.doppler/fallback/"
    ],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "~/.doppler/.doppler.yaml",
        "match": {
          "key_path": [
            "scoped.*.token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Doppler secrets",
    "description": "Inject secrets into a command, read individual secrets or download a config. Token and host options are left out; use doppler login.",
    "quality": "ai-draft",
    "base": "fig:doppler",
    "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/doppler.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "run"
        ],
        "label": "Run with secrets",
        "description": "Runs a command with the config secrets injected into its environment.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/doppler.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project",
            "label": "Project",
            "type": "string",
            "option": [
              "--project",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config",
            "type": "string",
            "option": [
              "--config",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Command",
            "description": "Whole command line as one string, e.g. npm start.",
            "type": "string",
            "option": [
              "--command"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_cache",
            "label": "Disable fallback file cache",
            "type": "boolean",
            "option": [
              "--no-cache"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "forward_signals",
            "label": "Forward signals",
            "type": "boolean",
            "option": [
              "--forward-signals"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run command",
            "fields": [
              "project",
              "config",
              "command"
            ],
            "required": [
              "command"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project",
              "config",
              "command"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "no_cache",
              "forward_signals"
            ]
          }
        ]
      },
      {
        "path": [
          "secrets",
          "get"
        ],
        "label": "Get secrets",
        "description": "Prints the values of one or more secrets.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/doppler.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "names",
            "label": "Secret names",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "project",
            "label": "Project",
            "type": "string",
            "option": [
              "--project",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config",
            "type": "string",
            "option": [
              "--config",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "plain",
            "label": "Plain values",
            "type": "boolean",
            "option": [
              "--plain"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "raw",
            "label": "Raw secret value",
            "type": "string",
            "option": [
              "--raw"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "get",
            "label": "Get secret values",
            "fields": [
              "names",
              "project",
              "config",
              "plain"
            ],
            "required": [
              "names"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "names",
              "project",
              "config",
              "plain"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "json",
              "raw"
            ]
          }
        ]
      },
      {
        "path": [
          "secrets",
          "download"
        ],
        "label": "Download secrets",
        "description": "Downloads a config to a file or to stdout.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/doppler.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file",
            "label": "Output file",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "output"
            },
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "project",
            "label": "Project",
            "type": "string",
            "option": [
              "--project",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config",
            "type": "string",
            "option": [
              "--config",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Format",
            "type": "string",
            "option": [
              "--format"
            ],
            "suggestions": [
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "env",
                "label": "env"
              },
              {
                "value": "yaml",
                "label": "yaml"
              },
              {
                "value": "docker",
                "label": "docker"
              },
              {
                "value": "env-no-quotes",
                "label": "env-no-quotes"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_file",
            "label": "Print to stdout",
            "type": "boolean",
            "option": [
              "--no-file"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yes",
            "label": "Skip confirmation",
            "type": "boolean",
            "option": [
              "--yes",
              "-y"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "env",
            "label": "Download as .env",
            "set": {
              "format": [
                "env"
              ]
            },
            "fields": [
              "file",
              "project",
              "config",
              "format"
            ],
            "required": [
              "file"
            ]
          },
          {
            "id": "stdout",
            "label": "Print to stdout",
            "set": {
              "no_file": [
                true
              ]
            },
            "fields": [
              "project",
              "config",
              "format",
              "no_file"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file",
              "project",
              "config",
              "format",
              "no_file",
              "yes"
            ]
          }
        ]
      }
    ]
  }
}
