id = "cap" name = "Capacitor (cap)" description = "The Capacitor command-line interface, used to develop Capacitor apps." homepage = "https://capacitorjs.com" executables = ["cap"] [commands] format = 1 label = "Capacitor project" description = "Add platforms, sync web assets and run on a device. Run from the root of a Capacitor project." quality = "ai-draft" base = "fig:cap" 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/cap.ts" license = "MIT" [[commands.subcommand]] path = ["add"] label = "Add a platform" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cap.ts" license = "MIT" [[commands.subcommand.field]] id = "platform" label = "Platform" type = "enum" position = 0 choices = [{ value = "android", label = "Android" }, { value = "ios", label = "iOS" }] sources = ["fig"] [[commands.subcommand.task]] id = "add" label = "Add a native platform" fields = ["platform"] required = ["platform"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["platform"] [[commands.subcommand]] path = ["sync"] label = "Sync web assets and plugins" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cap.ts" license = "MIT" [[commands.subcommand.field]] id = "platform" label = "Platform" description = "Leave empty to sync every platform." type = "enum" position = 0 choices = [{ value = "android", label = "Android" }, { value = "ios", label = "iOS" }] sources = ["fig"] [[commands.subcommand.field]] id = "inline" label = "Inline JS source maps" description = "Allows debugging an Android WebView in Chromium based browsers." type = "boolean" option = ["--inline"] sources = ["fig"] [[commands.subcommand.field]] id = "deployment" label = "Podfile.lock deployment mode" description = "Podfile.lock is not deleted and pod install uses --deployment." type = "boolean" option = ["--deployment"] sources = ["fig"] [[commands.subcommand.task]] id = "sync" label = "Sync all platforms" fields = ["platform"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["platform", "inline", "deployment"] [[commands.subcommand]] path = ["run"] label = "Run on a device" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/cap.ts" license = "MIT" [[commands.subcommand.field]] id = "platform" label = "Platform" type = "enum" position = 0 choices = [{ value = "android", label = "Android" }, { value = "ios", label = "iOS" }] sources = ["fig"] [[commands.subcommand.field]] id = "list" label = "List target devices" type = "boolean" option = ["--list"] sources = ["fig"] [[commands.subcommand.field]] id = "target" label = "Target device" type = "string" option = ["--target"] sources = ["fig"] [[commands.subcommand.task]] id = "run" label = "Run on a target" fields = ["platform", "target"] required = ["platform"] [[commands.subcommand.task]] id = "list" label = "List targets" fields = ["platform", "list"] required = ["platform"] set = { list = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["platform", "target", "list"]