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