{
  "id": "sfdx",
  "name": "Salesforce CLI",
  "homepage": "https://developer.salesforce.com/tools/salesforcecli",
  "description": "Salesforce CLI simplifies development and build automation when working with your Salesforce org.",
  "icon": "theSVG:salesforce",
  "executables": [
    "sfdx",
    "sf"
  ],
  "dotfiles": {
    "paths": [
      "~/.sfdx/sfdx-config.json",
      "~/.sfdx/alias.json",
      "~/.sf/config.json"
    ],
    "exclude": [],
    "secret": [
      "~/.sfdx/*@*.json",
      "~/.sfdx/key.json"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Salesforce CLI (sfdx)",
    "description": "Run a SOQL query or deploy source with the legacy sfdx force commands. Other sfdx commands, auth flows and the newer sf command are left out.",
    "quality": "ai-draft",
    "base": "fig:sfdx",
    "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/sfdx.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "force:data:soql:query"
        ],
        "label": "Run a SOQL query",
        "description": "Execute a SOQL query against an org and print the result.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sfdx.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "query",
            "label": "SOQL query",
            "type": "string",
            "option": [
              "--query",
              "-q"
            ],
            "description": "SOQL query to execute.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "target_org",
            "label": "Target org",
            "type": "string",
            "option": [
              "--targetusername",
              "-u"
            ],
            "description": "Username or alias for the target org; overrides the default.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tooling",
            "label": "Use Tooling API",
            "type": "boolean",
            "option": [
              "--usetoolingapi",
              "-t"
            ],
            "description": "Execute the query with the Tooling API.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "result_format",
            "label": "Result format",
            "type": "enum",
            "option": [
              "--resultformat",
              "-r"
            ],
            "description": "Result format emitted to stdout.",
            "choices": [
              {
                "value": "human",
                "label": "human"
              },
              {
                "value": "csv",
                "label": "csv"
              },
              {
                "value": "json",
                "label": "json"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json"
            ],
            "description": "Format output as json.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "query",
            "label": "Run a query",
            "fields": [
              "query",
              "target_org",
              "result_format"
            ],
            "required": [
              "query"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "query",
              "target_org",
              "tooling",
              "result_format",
              "json"
            ]
          }
        ]
      },
      {
        "path": [
          "force:source:deploy"
        ],
        "label": "Deploy source",
        "description": "Deploy source-format metadata to an org. Choose source path, metadata names or a manifest.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sfdx.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target_org",
            "label": "Target org",
            "type": "string",
            "option": [
              "--targetusername",
              "-u"
            ],
            "description": "Username or alias for the target org; overrides the default.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "sourcepath",
            "label": "Source paths",
            "type": "string",
            "option": [
              "--sourcepath",
              "-p"
            ],
            "description": "Comma-separated list of source file paths to deploy.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "metadata",
            "label": "Metadata components",
            "type": "string",
            "option": [
              "--metadata",
              "-m"
            ],
            "description": "Comma-separated list of metadata component names.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "manifest",
            "label": "Manifest (package.xml)",
            "type": "path",
            "option": [
              "--manifest",
              "-x"
            ],
            "description": "File path for manifest of components to deploy.",
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "checkonly",
            "label": "Validate only",
            "type": "boolean",
            "option": [
              "--checkonly",
              "-c"
            ],
            "description": "Validate deploy but do not save to the org.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "testlevel",
            "label": "Test level",
            "type": "string",
            "option": [
              "--testlevel",
              "-l"
            ],
            "description": "Deployment testing level.",
            "suggestions": [
              {
                "value": "NoTestRun",
                "label": "NoTestRun"
              },
              {
                "value": "RunSpecifiedTests",
                "label": "RunSpecifiedTests"
              },
              {
                "value": "RunLocalTests",
                "label": "RunLocalTests"
              },
              {
                "value": "RunAllTestsInOrg",
                "label": "RunAllTestsInOrg"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "wait",
            "label": "Wait (minutes)",
            "type": "integer",
            "option": [
              "--wait",
              "-w"
            ],
            "description": "Wait time for command to finish in minutes.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "description": "Verbose output of deploy result.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "validate",
            "label": "Validate a source path",
            "set": {
              "checkonly": [
                true
              ]
            },
            "fields": [
              "sourcepath",
              "target_org",
              "testlevel",
              "wait"
            ],
            "required": [
              "sourcepath"
            ]
          },
          {
            "id": "deploy",
            "label": "Deploy a source path",
            "fields": [
              "sourcepath",
              "target_org",
              "testlevel",
              "wait"
            ],
            "required": [
              "sourcepath"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target_org",
              "sourcepath",
              "checkonly",
              "testlevel",
              "wait"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "metadata",
              "manifest",
              "verbose"
            ]
          }
        ]
      }
    ]
  }
}
