{
  "name": "tuist",
  "description": "Generate, build and test your Xcode projects. For more info please see https://docs.tuist.io/",
  "subcommands": [
    {
      "name": "build",
      "description": "Build the project in the current directory",
      "options": [
        {
          "names": [
            "--build-output-path"
          ],
          "description": "Build the project to a custom directory, example usage: 'tuist build --build-output-path .build':"
        },
        {
          "names": [
            "--device"
          ],
          "description": "Build the project to a specific device, example usage: 'tuist build --device \"iPhone X\"':"
        },
        {
          "names": [
            "--os"
          ],
          "description": "Build the project to a specific OS, example usage: 'tuist build --os 14.0':"
        }
      ],
      "args": [
        {
          "name": "scheme",
          "description": "The scheme to be built. By default it builds all the buildable schemes of the project in the current directory"
        }
      ]
    },
    {
      "name": "cache",
      "description": "A set of utilities related to the caching of targets. For more info see https://docs.tuist.io/building-at-scale/caching USAGE: tuist cache <subcommand>",
      "subcommands": [
        {
          "name": "warm",
          "description": "Warms the local and remote cache",
          "options": [
            {
              "names": [
                "--path",
                "-p"
              ],
              "description": "The path to the directory that contains the project whose targets will be cached"
            },
            {
              "names": [
                "--profile",
                "-P"
              ],
              "description": "The name of the profile to be used when warming up the cache"
            },
            {
              "names": [
                "--xcframeworks",
                "-x"
              ],
              "description": "When passed it caches the targets for simulator and device using xcframeworks"
            },
            {
              "names": [
                "--dependencies-only"
              ],
              "description": "If passed, the command doesn't cache the targets passed in the `--targets` argument, but only their dependencies"
            }
          ]
        },
        {
          "name": "print-hashes",
          "description": "Print the hashes of the cacheable frameworks in the given project",
          "options": [
            {
              "names": [
                "--path",
                "-p"
              ],
              "description": "The path to the directory that contains the project whose targets will be cached"
            },
            {
              "names": [
                "--profile",
                "-P"
              ],
              "description": "The name of the profile to be used when warming up the cache"
            },
            {
              "names": [
                "--xcframeworks",
                "-x"
              ],
              "description": "When passed it caches the targets for simulator and device using xcframeworks"
            }
          ]
        }
      ]
    },
    {
      "name": "clean",
      "description": "Clean all the data generated by Tuist. USAGE: tuist clean [<clean-categories> ...] [--path <path>]",
      "options": [
        {
          "names": [
            "--path",
            "-p"
          ],
          "description": "The path to the directory that contains the project that should be cleaned"
        },
        {
          "names": [
            "plugins"
          ],
          "description": "Clean only the plugins cache generated by Tuist, example usage: 'tuist clean plugins':"
        },
        {
          "names": [
            "builds"
          ],
          "description": "Clean only the builds artifacts cache generated by Tuist, example usage: 'tuist clean builds':"
        },
        {
          "names": [
            "tests"
          ],
          "description": "Clean only the tests cache generated by Tuist, example usage: 'tuist clean tests':"
        },
        {
          "names": [
            "generatedAutomationProjects"
          ],
          "description": "Clean only the automation projects cache generated by Tuist, example usage: 'tuist clean generatedAutomationProjects':"
        },
        {
          "names": [
            "projectDescriptionHelpers"
          ],
          "description": "Clean only the project description helpers cache generated by Tuist, example usage: 'tuist clean projectDescriptionHelpers':"
        },
        {
          "names": [
            "manifests"
          ],
          "description": "Clean only the manifests cache generated by Tuist, example usage: 'tuist clean manifests':"
        }
      ],
      "args": [
        {
          "name": "clean-categories",
          "description": "The cache and artifact categories to be cleaned. If no category is specified, everything is cleaned. (default: plugins, builds, tests, generatedAutomationProjects, projectDescriptionHelpers, manifests"
        }
      ]
    },
    {
      "name": "fetch",
      "description": "Dependencies can be fetched by running the following command. They are stored in your project's `Tuist/Dependencies` directory. For more info see https://docs.tuist.io/commands/dependencies",
      "options": [
        {
          "names": [
            "--path",
            "-p"
          ],
          "description": "The path to the directory that contains the workspace or project whose dependencies will be fetched/updated. The default is the current directory"
        },
        {
          "names": [
            "--update"
          ],
          "description": "Clean only the builds artifacts cache generated by Tuist, example usage: 'tuist fetch --update':"
        }
      ]
    },
    {
      "name": "edit",
      "description": "Editing your projects is easy; position yourself in a directory where there's a project defined and run the edit command. It will open a temporary Xcode project with all the project manifests and the ",
      "options": [
        {
          "names": [
            "--permanent"
          ],
          "description": "The project is deleted automatically once you are done with editing. If you wish to generate and keep the project in the current directory, you can run the command passing the --permanent argument. Th"
        }
      ]
    },
    {
      "name": "graph",
      "description": "Generates a graph from the workspace or project in the current directory. For more info see https://docs.tuist.io/commands/graph USAGE: tuist graph [--skip-test-targets] [--skip-external-dependencies]",
      "options": [
        {
          "names": [
            "--skip-test-targets",
            "-t"
          ],
          "description": "Excludes test targets from the generated graph"
        },
        {
          "names": [
            "--skip-external-dependencies",
            "-d"
          ],
          "description": "Excludes external dependencies from the generated graph"
        },
        {
          "names": [
            "--format",
            "-f"
          ],
          "description": "If you prefer to have the dot or json representations of the graph and render it separately. Available formats: dot, png, json (default: png)",
          "takes_arg": true,
          "arg": {
            "name": "format",
            "suggestions": [
              "dot",
              "png",
              "json"
            ]
          }
        },
        {
          "names": [
            "--algorithm",
            "-a"
          ],
          "description": "Available formats: dot, neato, twopi, circo, fdp, sfddp, patchwork (default: dot)",
          "takes_arg": true,
          "arg": {
            "name": "format",
            "suggestions": [
              "dot",
              "neato",
              "twopi",
              "circo",
              "fdp",
              "sfddp",
              "patchwork"
            ]
          }
        },
        {
          "names": [
            "--path",
            "-p"
          ],
          "description": "The path to the directory that contains the definition of the project. Default is current directory",
          "takes_arg": true,
          "arg": {
            "name": "project dir",
            "template": "folders"
          }
        },
        {
          "names": [
            "--output-path",
            "-o"
          ],
          "description": "The path to where the image will be exported. When not specified, it exports the image in the current directory",
          "takes_arg": true,
          "arg": {
            "name": "output path",
            "template": "folders"
          }
        },
        {
          "names": [
            "--no-open",
            "-n"
          ],
          "description": "If set, the generated graph is not opened automatically. Default is yes"
        },
        {
          "names": [
            "--platform",
            "-l"
          ],
          "description": "If set, show only the targets for the given platform. Default is all platforms. Available platforms: ios, macos, tvos, watchos",
          "takes_arg": true,
          "arg": {
            "name": "platform",
            "suggestions": [
              "ios",
              "macos",
              "tvos",
              "watchos"
            ]
          }
        }
      ],
      "args": [
        {
          "name": "targets",
          "description": "A list of targets to filter. Those and their dependent targets will be showed in the graph"
        }
      ]
    },
    {
      "name": "generate",
      "description": "Generates an Xcode workspace to start working on the project. For more info see https://docs.tuist.io/commands/generate",
      "options": [
        {
          "names": [
            "--path",
            "-p"
          ],
          "description": "The path to the directory that contains the definition of the project. Default is current directory",
          "takes_arg": true,
          "arg": {
            "name": "path",
            "template": "folders"
          }
        },
        {
          "names": [
            "--no-open",
            "-n"
          ],
          "description": "Don't open the project after generating it. Default is false"
        },
        {
          "names": [
            "--xcframeworks",
            "-x"
          ],
          "description": "When passed it uses xcframeworks (simulator and device) from the cache instead of frameworks (only simulator). Default is false"
        },
        {
          "names": [
            "--no-cache"
          ],
          "description": "Ignore cached targets, and use their sources instead.\tDefault is false"
        },
        {
          "names": [
            "--profile",
            "-P"
          ],
          "description": "The name of the cache profile",
          "takes_arg": true,
          "arg": {
            "name": "cache profile"
          }
        }
      ],
      "args": [
        {
          "name": "sources",
          "description": "A list of targets to focus on. Other targets will be linked as binaries if possible. If no target is specified, all the project targets will be generated (except external ones, such as Swift packages)"
        }
      ]
    },
    {
      "name": "migration",
      "description": "To help developers with the process of adopting Tuist, Tuist provides a set of commands under tuist migration. For more info see https://docs.tuist.io/commands/migration",
      "subcommands": [
        {
          "name": "settings-to-xcconfig",
          "description": "It's recommended to make .xcconfig files the source of truth for build settings. For that, Tuist provides a tuist migration settings-to-xcconfig command that extracts the build settings from targets a",
          "options": [
            {
              "names": [
                "--xcodeproj-path",
                "-p"
              ],
              "description": "Required. Path to the Xcode project whose build settings will be extracted",
              "takes_arg": true,
              "arg": {
                "name": "path",
                "template": "folders"
              },
              "is_required": true
            },
            {
              "names": [
                "--xcconfig-path",
                "-x"
              ],
              "description": "Required. Path to the Xcode project whose build settings will be extracted",
              "takes_arg": true,
              "arg": {
                "name": "path",
                "template": "folders"
              },
              "is_required": true
            },
            {
              "names": [
                "--target",
                "-t"
              ],
              "description": "Optional. The name of the target whose build settings will be extracted. When not passed, it extracts the build settings of the project",
              "takes_arg": true,
              "arg": {
                "name": "target"
              }
            }
          ]
        },
        {
          "name": "check-empty-settings",
          "description": "After making .xcconfig files the source of truth for build settings, it's important to ensure that build settings are no longer set to the project. To help with that, Tuist includes a command that fai",
          "options": [
            {
              "names": [
                "--xcodeproj-path",
                "-p"
              ],
              "description": "Required. Path to the Xcode project whose build settings will be checked"
            },
            {
              "names": [
                "--target",
                "-t"
              ],
              "description": "Optional. The name of the target whose build settings will be checked. When not passed, it checks the build settings of the project"
            }
          ]
        },
        {
          "name": "list-targets",
          "description": "When passed it uses xcframeworks (simulator and device) from the cache instead of frameworks (only simulator). Default is false",
          "options": [
            {
              "names": [
                "--xcodeproj-path",
                "-p"
              ],
              "description": "Required. Path to the Xcode project whose build settings will be checked",
              "is_required": true
            }
          ]
        }
      ]
    },
    {
      "name": "scaffold",
      "description": "Generates new project based on a template. For more info see https://docs.tuist.io/commands/scaffold USAGE: tuist scaffold <template> [--json] [--path <path>] <subcommand>",
      "subcommands": [
        {
          "name": "list",
          "description": "Lists available scaffold templates"
        }
      ],
      "options": [
        {
          "names": [
            "--path",
            "-p"
          ],
          "description": "The path to the folder where the template will be generated (Default: Current directory)",
          "takes_arg": true,
          "arg": {
            "name": "path"
          }
        },
        {
          "names": [
            "--json"
          ],
          "description": "The output in JSON format"
        },
        {
          "names": [
            "--name"
          ],
          "description": "The name of the generate project",
          "takes_arg": true,
          "arg": {
            "name": "name"
          }
        },
        {
          "names": [
            "--platform"
          ],
          "description": "The platform used by the project",
          "takes_arg": true,
          "arg": {
            "name": "platform"
          }
        }
      ],
      "args": [
        {
          "name": "template",
          "description": "Name of template you want to use"
        }
      ]
    },
    {
      "name": "test",
      "description": "Tests a project. For more info see https://docs.tuist.io/commands/test USAGE: tuist test [<scheme>] [--clean] [--path <path>] [--device <device>] [--os <os>] [--configuration <configuration>] [--skip-",
      "options": [
        {
          "names": [
            "--path",
            "-p"
          ],
          "description": "The path to the directory that contains the project to be tested",
          "takes_arg": true,
          "arg": {
            "name": "path",
            "template": "folders"
          }
        },
        {
          "names": [
            "--clean",
            "-c"
          ],
          "description": "When passed, it cleans the project before testing it"
        },
        {
          "names": [
            "--device",
            "-d"
          ],
          "description": "Test on a specific device",
          "takes_arg": true,
          "arg": {
            "name": "device"
          }
        },
        {
          "names": [
            "--os",
            "-o"
          ],
          "description": "Test with a specific version of the OS",
          "takes_arg": true,
          "arg": {
            "name": "os"
          }
        },
        {
          "names": [
            "--configuration",
            "-C"
          ],
          "description": "The configuration to be used when testing the scheme"
        },
        {
          "names": [
            "--skip-ui-tests"
          ],
          "description": "When passed, it skips testing UI Tests targets"
        },
        {
          "names": [
            "--result-bundle-path",
            "-T"
          ],
          "description": "Path where test result bundle will be saved"
        },
        {
          "names": [
            "--retry-count"
          ],
          "description": "Tests will retry <number> of times until success. Example: if 1 is specified, the test will be retried at most once, hence it will run up to 2 times. (default: 0)",
          "takes_arg": true,
          "arg": {
            "name": "times"
          }
        }
      ],
      "args": [
        {
          "name": "scheme",
          "description": "The scheme to be tested. By default it tests all the testable targets of the project in the current directory"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Show help for tuist"
    }
  ]
}
