{
  "name": "tangram",
  "subcommands": [
    {
      "name": "app",
      "description": "Run the app",
      "options": [
        {
          "names": [
            "-c",
            "--config"
          ],
          "description": "The path to a config file",
          "takes_arg": true,
          "arg": {
            "name": "CONFIG",
            "template": "filepaths"
          }
        }
      ]
    },
    {
      "name": "migrate",
      "description": "Migrate your app database",
      "options": [
        {
          "names": [
            "--database-url"
          ],
          "takes_arg": true,
          "arg": {
            "name": "DATABASE_URL"
          }
        }
      ]
    },
    {
      "name": "predict",
      "description": "Make predictions with a model",
      "options": [
        {
          "names": [
            "-f",
            "--file"
          ],
          "description": "The path to read examples from, defaults to stdin",
          "takes_arg": true,
          "arg": {
            "name": "FILE",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "-m",
            "--model"
          ],
          "description": "The path to the model to make predictions with",
          "takes_arg": true,
          "arg": {
            "name": "MODEL",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "-o",
            "--output"
          ],
          "description": "The path to write the predictions to, defaults to stdout",
          "takes_arg": true,
          "arg": {
            "name": "OUTPUT",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "-p",
            "--probabilities"
          ],
          "description": "Output probabilities instead of class labels, only relevant for classifier models",
          "takes_arg": true,
          "arg": {
            "name": "PROBABILITIES"
          }
        }
      ]
    },
    {
      "name": "train",
      "description": "Train a model",
      "options": [
        {
          "names": [
            "-c",
            "--config"
          ],
          "description": "The path to a config file",
          "takes_arg": true,
          "arg": {
            "name": "CONFIG",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "-f",
            "--file"
          ],
          "description": "The path to your .csv file",
          "takes_arg": true,
          "arg": {
            "name": "FILE",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--file-test"
          ],
          "description": "The path to your .csv file used for testing",
          "takes_arg": true,
          "arg": {
            "name": "FILE_TEST",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--file-train"
          ],
          "description": "The path to your .csv file used for training",
          "takes_arg": true,
          "arg": {
            "name": "FILE_TRAIN",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "-o",
            "--output"
          ],
          "description": "The path to write the .tangram file to",
          "takes_arg": true,
          "arg": {
            "name": "OUTPUT",
            "template": "filepaths"
          }
        },
        {
          "names": [
            "-t",
            "--target"
          ],
          "description": "The name of the column to predict",
          "takes_arg": true,
          "arg": {
            "name": "TARGET"
          }
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Print help information"
    },
    {
      "names": [
        "--version",
        "-v"
      ],
      "description": "Print version information"
    }
  ]
}
