{
  "id": "zapier-platform-cli",
  "name": "Zapier Platform CLI",
  "description": "A developer-focused CLI to create and maintain Zapier integrations.",
  "homepage": "https://github.com/zapier/zapier-platform",
  "executables": [
    "zapier-platform-cli"
  ],
  "commands": {
    "format": 1,
    "label": "Zapier Platform CLI",
    "description": "Create, push and inspect logs of a Zapier integration. Team, user, env, promote and migrate commands are left out.",
    "quality": "ai-draft",
    "base": "fig:zapier-platform-cli",
    "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/zapier-platform-cli.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "init"
        ],
        "label": "Create integration",
        "description": "Initialize a new Zapier integration with a project template.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/zapier-platform-cli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Directory",
            "description": "Created if missing; you are asked to confirm if it is not empty.",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "template",
            "label": "Template",
            "type": "string",
            "option": [
              "--template",
              "-t"
            ],
            "suggestions": [
              {
                "value": "minimal",
                "label": "minimal"
              },
              {
                "value": "basic-auth",
                "label": "basic-auth"
              },
              {
                "value": "oauth2",
                "label": "oauth2"
              },
              {
                "value": "session-auth",
                "label": "session-auth"
              },
              {
                "value": "typescript",
                "label": "typescript"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "New integration",
            "fields": [
              "path",
              "template"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "template"
            ]
          }
        ]
      },
      {
        "path": [
          "push"
        ],
        "label": "Build and upload",
        "description": "Build and upload the current integration.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/zapier-platform-cli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "disable_dependency_detection",
            "label": "Disable smart file inclusion",
            "description": "Include all files; may make build.zip too large.",
            "type": "boolean",
            "option": [
              "--disable-dependency-detection"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug output",
            "type": "boolean",
            "option": [
              "--debug",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "push",
            "label": "Push",
            "fields": [
              "debug"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "debug",
              "disable_dependency_detection"
            ]
          }
        ]
      },
      {
        "path": [
          "logs"
        ],
        "label": "Show logs",
        "description": "Print recent logs.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/zapier-platform-cli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "version",
            "label": "Version",
            "type": "string",
            "option": [
              "--version",
              "-v"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "status",
            "label": "Status",
            "type": "enum",
            "option": [
              "--status",
              "-s"
            ],
            "choices": [
              {
                "value": "any",
                "label": "any"
              },
              {
                "value": "success",
                "label": "success"
              },
              {
                "value": "error",
                "label": "error"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "type",
            "label": "Log type",
            "type": "enum",
            "option": [
              "--type",
              "-t"
            ],
            "choices": [
              {
                "value": "console",
                "label": "console"
              },
              {
                "value": "bundle",
                "label": "bundle"
              },
              {
                "value": "http",
                "label": "http"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "detailed",
            "label": "Detailed",
            "description": "Include request/response body and headers.",
            "type": "boolean",
            "option": [
              "--detailed"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "limit",
            "label": "Limit",
            "description": "Max and default is 50.",
            "type": "integer",
            "option": [
              "--limit"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "errors",
            "label": "Recent errors",
            "fields": [
              "status",
              "limit"
            ],
            "required": [
              "status"
            ],
            "set": {
              "status": [
                "error"
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "version",
              "status",
              "type",
              "limit",
              "detailed"
            ]
          }
        ]
      }
    ]
  }
}
