{
  "id": "firebase",
  "name": "Firebase CLI",
  "homepage": "https://firebase.google.com/docs/cli",
  "description": "The Firebase Command Line Tools.",
  "icon": "SimpleIcons:firebase",
  "executables": [
    "firebase"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/configstore/firebase-tools.json"
    ],
    "exclude": [],
    "secret": [],
    "secret_paths": [
      {
        "file": "~/.config/configstore/firebase-tools.json",
        "match": {
          "key_path": [
            "tokens.id_token",
            "tokens.access_token",
            "tokens.refresh_token",
            "additionalAccounts.*.tokens.id_token",
            "additionalAccounts.*.tokens.access_token",
            "additionalAccounts.*.tokens.refresh_token"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "~/.config/configstore/firebase-tools.json",
        "match": {
          "key_path": [
            "activeProjects",
            "activeAccounts"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Firebase CLI",
    "description": "Deploy to Firebase and run the local emulators. Other commands (auth, hosting channels, functions config) are left out.",
    "quality": "ai-draft",
    "base": "fig:firebase",
    "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/firebase.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "deploy"
        ],
        "label": "Deploy to Firebase",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/firebase.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "only",
            "label": "Only these targets",
            "description": "Comma-separated, e.g. hosting,storage.",
            "type": "string",
            "option": [
              "--only"
            ],
            "suggestions": [
              {
                "value": "hosting",
                "label": "hosting"
              },
              {
                "value": "functions",
                "label": "functions"
              },
              {
                "value": "firestore",
                "label": "firestore"
              },
              {
                "value": "storage",
                "label": "storage"
              },
              {
                "value": "database",
                "label": "database"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "except",
            "label": "Except these targets",
            "type": "string",
            "option": [
              "--except"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "message",
            "label": "Deploy message",
            "type": "string",
            "option": [
              "--message",
              "-m"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "public",
            "label": "Hosting public directory",
            "type": "path",
            "option": [
              "--public",
              "-p"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Delete functions missing locally",
            "description": "Deletes Cloud Functions not in the working directory without confirmation.",
            "type": "boolean",
            "option": [
              "--force",
              "-f"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "hosting",
            "label": "Deploy hosting only",
            "set": {
              "only": [
                "hosting"
              ]
            },
            "lock": [
              "only"
            ],
            "fields": [
              "only",
              "message"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "only",
              "except"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "message",
              "public",
              "force"
            ]
          }
        ]
      },
      {
        "path": [
          "emulators:start"
        ],
        "label": "Start emulators",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/firebase.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "only",
            "label": "Only these emulators",
            "description": "Comma-separated list of emulator names.",
            "type": "string",
            "option": [
              "--only"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "export_on_exit",
            "label": "Export data on exit",
            "type": "boolean",
            "option": [
              "--export-on-exit"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "import",
            "label": "Import data from",
            "type": "path",
            "option": [
              "--import"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "start",
            "label": "Start emulators",
            "fields": [
              "only",
              "import",
              "export_on_exit"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "only",
              "export_on_exit",
              "import"
            ]
          }
        ]
      },
      {
        "path": [
          "init"
        ],
        "label": "Set up a Firebase project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/firebase.ts",
            "license": "MIT"
          }
        ]
      }
    ]
  }
}
