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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/zapier-platform-cli.ts" license = "MIT" [[commands.subcommand]] path = ["init"] label = "Create integration" description = "Initialize a new Zapier integration with a project template." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/zapier-platform-cli.ts" license = "MIT" [[commands.subcommand.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"] [[commands.subcommand.field]] 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"] [[commands.subcommand.task]] id = "init" label = "New integration" fields = ["path", "template"] required = ["path"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["path", "template"] [[commands.subcommand]] path = ["push"] label = "Build and upload" description = "Build and upload the current integration." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/zapier-platform-cli.ts" license = "MIT" [[commands.subcommand.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"] [[commands.subcommand.field]] id = "debug" label = "Debug output" type = "boolean" option = ["--debug", "-d"] sources = ["fig"] [[commands.subcommand.task]] id = "push" label = "Push" fields = ["debug"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["debug", "disable_dependency_detection"] [[commands.subcommand]] path = ["logs"] label = "Show logs" description = "Print recent logs." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/zapier-platform-cli.ts" license = "MIT" [[commands.subcommand.field]] id = "version" label = "Version" type = "string" option = ["--version", "-v"] sources = ["fig"] [[commands.subcommand.field]] id = "status" label = "Status" type = "enum" option = ["--status", "-s"] choices = [{ value = "any", label = "any" }, { value = "success", label = "success" }, { value = "error", label = "error" }] sources = ["fig"] [[commands.subcommand.field]] 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"] [[commands.subcommand.field]] id = "detailed" label = "Detailed" description = "Include request/response body and headers." type = "boolean" option = ["--detailed"] sources = ["fig"] [[commands.subcommand.field]] id = "limit" label = "Limit" description = "Max and default is 50." type = "integer" option = ["--limit"] sources = ["fig"] [[commands.subcommand.task]] id = "errors" label = "Recent errors" fields = ["status", "limit"] required = ["status"] set = { status = ["error"] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["version", "status", "type", "limit", "detailed"]