{
  "id": "pac",
  "name": "Microsoft Power Platform CLI",
  "homepage": "https://learn.microsoft.com/power-platform/developer/cli/introduction",
  "description": "A simple, one-stop developer CLI that empowers developers and ISVs to perform various operations in Microsoft Power Platform.",
  "icon": "https://learn.microsoft.com/en-us/power-platform/media/hub-page/power-platform.svg",
  "executables": [
    "pac"
  ],
  "dotfiles": {
    "paths": [],
    "exclude": [],
    "secret": [
      "~/.local/share/Microsoft/PowerAppsCli/authprofiles*.json",
      "%LOCALAPPDATA%/Microsoft/PowerAppsCli/authprofiles*.json"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Power Platform solutions",
    "description": "Authenticate and move Dataverse solutions in and out of an environment. Secrets (passwords, client secrets, certificates) are left out; other pac commands are not covered.",
    "quality": "ai-draft",
    "base": "fig:pac",
    "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/pac.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "auth",
          "create"
        ],
        "label": "Create auth profile",
        "description": "Sign in interactively or with device code.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pac.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Profile name",
            "type": "string",
            "option": [
              "--name",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "url",
            "label": "Environment URL",
            "type": "string",
            "option": [
              "--url",
              "-u"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "environment",
            "label": "Default environment",
            "type": "string",
            "option": [
              "--environment"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "kind",
            "label": "Kind",
            "type": "string",
            "option": [
              "--kind",
              "-k"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tenant",
            "label": "Tenant ID",
            "type": "string",
            "option": [
              "--tenant",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cloud",
            "label": "Cloud",
            "type": "string",
            "option": [
              "--cloud"
            ],
            "suggestions": [
              {
                "value": "Public",
                "label": "Public"
              },
              {
                "value": "Preprod",
                "label": "Preprod"
              },
              {
                "value": "Test",
                "label": "Test"
              },
              {
                "value": "UsGov",
                "label": "UsGov"
              },
              {
                "value": "UsGovHigh",
                "label": "UsGovHigh"
              },
              {
                "value": "UsGovDod",
                "label": "UsGovDod"
              },
              {
                "value": "China",
                "label": "China"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "device_code",
            "label": "Device code sign-in",
            "type": "boolean",
            "option": [
              "--deviceCode"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Sign in",
            "fields": [
              "name",
              "url",
              "cloud",
              "device_code"
            ],
            "required": [
              "url"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "url",
              "environment",
              "kind"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "tenant",
              "cloud",
              "device_code"
            ]
          }
        ]
      },
      {
        "path": [
          "solution",
          "export"
        ],
        "label": "Export a solution",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pac.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Solution name",
            "type": "string",
            "option": [
              "--name",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "path",
            "label": "Output zip path",
            "type": "path",
            "option": [
              "--path",
              "-p"
            ],
            "path": {
              "kind": "file",
              "role": "output"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "managed",
            "label": "Managed",
            "type": "boolean",
            "option": [
              "--managed",
              "-m"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "async",
            "label": "Asynchronous",
            "type": "boolean",
            "option": [
              "--async",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "overwrite",
            "label": "Overwrite existing zip",
            "type": "boolean",
            "option": [
              "--overwrite"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "export",
            "label": "Export",
            "fields": [
              "name",
              "path",
              "managed",
              "async",
              "overwrite"
            ],
            "required": [
              "name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "path",
              "managed",
              "async",
              "overwrite"
            ]
          }
        ]
      },
      {
        "path": [
          "solution",
          "import"
        ],
        "label": "Import a solution",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pac.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Solution zip",
            "type": "path",
            "option": [
              "--path",
              "-p"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "activate_plugins",
            "label": "Activate plug-ins",
            "type": "boolean",
            "option": [
              "--activate-plugins"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force_overwrite",
            "label": "Force overwrite of unmanaged customizations",
            "type": "boolean",
            "option": [
              "--force-overwrite",
              "-f"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "publish_changes",
            "label": "Publish after import",
            "type": "boolean",
            "option": [
              "--publish-changes"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "async",
            "label": "Asynchronous",
            "type": "boolean",
            "option": [
              "--async",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "convert_to_managed",
            "label": "Convert to managed",
            "type": "boolean",
            "option": [
              "--convert-to-managed"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "import",
            "label": "Import",
            "fields": [
              "path",
              "activate_plugins",
              "publish_changes",
              "async"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "activate_plugins",
              "force_overwrite",
              "publish_changes",
              "async"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "convert_to_managed"
            ]
          }
        ]
      },
      {
        "path": [
          "solution",
          "unpack"
        ],
        "label": "Unpack a solution",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pac.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "zipfile",
            "label": "Solution zip",
            "type": "path",
            "option": [
              "--zipfile",
              "-z"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "folder",
            "label": "Target folder",
            "type": "path",
            "option": [
              "--folder",
              "-f"
            ],
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "packagetype",
            "label": "Package type",
            "type": "string",
            "option": [
              "--packagetype",
              "-p"
            ],
            "suggestions": [
              {
                "value": "Unmanaged",
                "label": "Unmanaged"
              },
              {
                "value": "Managed",
                "label": "Managed"
              },
              {
                "value": "Both",
                "label": "Both"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "allow_write",
            "label": "Allow writes",
            "type": "boolean",
            "option": [
              "--allowWrite"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "allow_delete",
            "label": "Allow deletes",
            "type": "boolean",
            "option": [
              "--allowDelete"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "clobber",
            "label": "Overwrite read-only files",
            "type": "boolean",
            "option": [
              "--clobber",
              "-c"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "unpack",
            "label": "Unpack",
            "fields": [
              "zipfile",
              "folder",
              "packagetype"
            ],
            "required": [
              "zipfile",
              "folder"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "zipfile",
              "folder",
              "packagetype",
              "allow_write",
              "allow_delete"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "clobber"
            ]
          }
        ]
      },
      {
        "path": [
          "solution",
          "pack"
        ],
        "label": "Pack a solution",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/pac.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "zipfile",
            "label": "Solution zip",
            "type": "path",
            "option": [
              "--zipfile",
              "-z"
            ],
            "path": {
              "kind": "file",
              "role": "output"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "folder",
            "label": "Source folder",
            "type": "path",
            "option": [
              "--folder",
              "-f"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "packagetype",
            "label": "Package type",
            "type": "string",
            "option": [
              "--packagetype",
              "-p"
            ],
            "suggestions": [
              {
                "value": "Unmanaged",
                "label": "Unmanaged"
              },
              {
                "value": "Managed",
                "label": "Managed"
              },
              {
                "value": "Both",
                "label": "Both"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "clobber",
            "label": "Overwrite read-only files",
            "type": "boolean",
            "option": [
              "--clobber",
              "-c"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "pack",
            "label": "Pack",
            "fields": [
              "zipfile",
              "folder",
              "packagetype",
              "clobber"
            ],
            "required": [
              "zipfile",
              "folder"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "zipfile",
              "folder",
              "packagetype",
              "clobber"
            ]
          }
        ]
      }
    ]
  }
}
