id = "react-native" name = "React Native CLI" description = "Command line tools that ship with React Native." homepage = "https://reactnative.dev" executables = ["react-native"] [commands] format = 1 label = "React Native" description = "Start Metro and run an app on the iOS simulator. Android, bundling and init are not covered." quality = "ai-draft" base = "fig:react-native" 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/react-native.ts" license = "MIT" [[commands.subcommand]] path = ["start"] label = "Start Metro" description = "Start the Metro bundler web server." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/react-native.ts" license = "MIT" [[commands.subcommand.field]] id = "port" label = "Port" type = "integer" option = ["--port"] sources = ["fig"] [[commands.subcommand.field]] id = "host" label = "Host" type = "string" option = ["--host"] sources = ["fig"] [[commands.subcommand.field]] id = "project_root" label = "Project root" type = "path" option = ["--projectRoot"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "reset_cache" label = "Reset cache" type = "boolean" option = ["--reset-cache"] sources = ["fig"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose"] sources = ["fig"] [[commands.subcommand.field]] id = "https" label = "HTTPS" type = "boolean" option = ["--https"] sources = ["fig"] [[commands.subcommand.field]] id = "no_interactive" label = "Non-interactive" type = "boolean" option = ["--no-interactive"] sources = ["fig"] [[commands.subcommand.task]] id = "start" label = "Start Metro" fields = ["port", "reset_cache", "verbose"] [[commands.subcommand.task]] id = "start-clean" label = "Start with clean cache" set = { reset_cache = [true] } fields = ["port", "reset_cache"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["port", "host", "project_root", "reset_cache"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["verbose", "https", "no_interactive"] [[commands.subcommand]] path = ["run-ios"] label = "Run on iOS" description = "Build the app and start it on an iOS simulator or device." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/react-native.ts" license = "MIT" [[commands.subcommand.field]] id = "simulator" label = "Simulator" type = "string" option = ["--simulator"] sources = ["fig"] [[commands.subcommand.field]] id = "configuration" label = "Configuration" type = "string" option = ["--configuration"] suggestions = [{ value = "Debug", label = "Debug" }, { value = "Release", label = "Release" }] sources = ["fig"] [[commands.subcommand.field]] id = "scheme" label = "Xcode scheme" type = "string" option = ["--scheme"] sources = ["fig"] [[commands.subcommand.field]] id = "udid" label = "Device UDID" type = "string" option = ["--udid"] sources = ["fig"] [[commands.subcommand.field]] id = "no_packager" label = "Do not launch packager" type = "boolean" option = ["--no-packager"] sources = ["fig"] [[commands.subcommand.field]] id = "port" label = "Packager port" type = "integer" option = ["--port"] sources = ["fig"] [[commands.subcommand.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["--verbose"] sources = ["fig"] [[commands.subcommand.task]] id = "run-sim" label = "Run on a simulator" fields = ["simulator", "configuration", "scheme"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["simulator", "configuration", "scheme", "udid"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["no_packager", "port", "verbose"]