id = "ionic" name = "Ionic CLI" description = "The Ionic command-line interface for developing Ionic apps." homepage = "https://ionicframework.com" executables = ["ionic"] [commands] format = 1 label = "Ionic CLI" description = "Create, serve and build Ionic projects. Capacitor, Cordova, Appflow and account commands are left out." quality = "ai-draft" base = "fig:ionic" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ionic.ts" license = "MIT" [[commands.subcommand]] path = ["start"] label = "Create a new project" description = "Scaffold a new Ionic project from a starter template." [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ionic.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Project name" description = "The name of your new project, for example myApp." type = "string" position = 0 sources = ["src"] [[commands.subcommand.field]] id = "template" label = "Starter template" description = "Starter template such as blank or tabs." type = "string" position = 1 suggestions = [{ value = "blank", label = "blank" }, { value = "tabs", label = "tabs" }, { value = "sidemenu", label = "sidemenu" }] sources = ["src"] [[commands.subcommand.field]] id = "type" label = "Project type" description = "Framework to start with." type = "string" option = ["--type"] suggestions = [{ value = "angular", label = "angular" }, { value = "react", label = "react" }, { value = "vue", label = "vue" }] sources = ["src"] [[commands.subcommand.field]] id = "capacitor" label = "Include Capacitor" description = "Include Capacitor integration." type = "boolean" option = ["--capacitor"] sources = ["src"] [[commands.subcommand.field]] id = "cordova" label = "Include Cordova" description = "Include Cordova integration." type = "boolean" option = ["--cordova"] sources = ["src"] [[commands.subcommand.field]] id = "no_deps" label = "Skip dependency install" description = "Do not install npm/yarn dependencies." type = "boolean" option = ["--no-deps"] sources = ["src"] [[commands.subcommand.field]] id = "no_git" label = "Skip git init" description = "Do not initialize a git repo." type = "boolean" option = ["--no-git"] sources = ["src"] [[commands.subcommand.field]] id = "package_id" label = "Package ID" description = "Bundle ID / application ID in reverse-DNS notation." type = "string" option = ["--package-id"] sources = ["src"] [[commands.subcommand.field]] id = "list" label = "List templates" description = "List available starter templates." type = "boolean" option = ["--list", "-l"] sources = ["src"] [[commands.subcommand.task]] id = "start" label = "Start a project" fields = ["name", "template", "type", "capacitor"] required = ["name", "template"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "template", "type", "capacitor"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["cordova", "no_deps", "no_git", "package_id", "list"] [[commands.subcommand]] path = ["serve"] label = "Run the dev server" description = "Start a local dev server for app development and testing." [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ionic.ts" license = "MIT" [[commands.subcommand.field]] id = "port" label = "Port" description = "Port for the dev server." type = "integer" option = ["--port", "-p"] sources = ["src"] [[commands.subcommand.field]] id = "host" label = "Host" description = "Host for the dev server." type = "string" option = ["--host"] sources = ["src"] [[commands.subcommand.field]] id = "external" label = "Listen on all interfaces" description = "Host the dev server on all network interfaces." type = "boolean" option = ["--external"] sources = ["src"] [[commands.subcommand.field]] id = "lab" label = "Ionic Lab" description = "Test on multiple platform types in the browser." type = "boolean" option = ["--lab", "-l"] sources = ["src"] [[commands.subcommand.field]] id = "no_open" label = "Do not open browser" description = "Do not open a browser window." type = "boolean" option = ["--no-open"] sources = ["src"] [[commands.subcommand.field]] id = "no_livereload" label = "No live reload" description = "Just serve files without live reload." type = "boolean" option = ["--no-livereload"] sources = ["src"] [[commands.subcommand.field]] id = "ssl" label = "HTTPS" description = "Use HTTPS for the dev server." type = "boolean" option = ["--ssl"] sources = ["src"] [[commands.subcommand.field]] id = "prod" label = "Production configuration" description = "Use the production configuration." type = "boolean" option = ["--prod"] sources = ["src"] [[commands.subcommand.field]] id = "consolelogs" label = "Print console logs" description = "Print app console logs to the terminal." type = "boolean" option = ["--consolelogs"] sources = ["src"] [[commands.subcommand.task]] id = "serve" label = "Serve the app" fields = ["port", "no_open"] required = [] [[commands.subcommand.task]] id = "lab" label = "Serve with Ionic Lab" fields = ["lab", "port"] required = ["lab"] set = { lab = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["port", "host", "external", "lab", "no_open"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["no_livereload", "ssl", "prod", "consolelogs"] [[commands.subcommand]] path = ["build"] label = "Build web assets" description = "Build web assets and prepare the app for platform targets." [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ionic.ts" license = "MIT" [[commands.subcommand.field]] id = "prod" label = "Production configuration" description = "Use the production configuration." type = "boolean" option = ["--prod"] sources = ["src"] [[commands.subcommand.field]] id = "watch" label = "Watch" description = "Rebuild when files change." type = "boolean" option = ["--watch"] sources = ["src"] [[commands.subcommand.field]] id = "source_map" label = "Source maps" description = "Output source maps." type = "boolean" option = ["--source-map"] sources = ["src"] [[commands.subcommand.field]] id = "engine" label = "Engine" description = "Target engine." type = "string" option = ["--engine"] suggestions = [{ value = "browser", label = "browser" }, { value = "cordova", label = "cordova" }] sources = ["src"] [[commands.subcommand.field]] id = "platform" label = "Platform" description = "Target platform on the chosen engine." type = "string" option = ["--platform"] suggestions = [{ value = "ios", label = "ios" }, { value = "android", label = "android" }] sources = ["src"] [[commands.subcommand.task]] id = "build_prod" label = "Production build" fields = ["prod"] required = ["prod"] set = { prod = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["prod", "watch", "source_map", "engine", "platform"]