{
  "id": "sqlmesh",
  "name": "SQLMesh",
  "homepage": "https://sqlmesh.readthedocs.io",
  "description": "SQLMesh is a next-generation data transformation framework designed to ship data quickly, efficiently, and without error.",
  "icon": "https://sqlmesh.readthedocs.io/en/stable/_readthedocs/html/favicon.svg",
  "executables": [
    "sqlmesh"
  ],
  "dotfiles": {
    "paths": [
      "~/.sqlmesh/config.yaml",
      "~/.sqlmesh/config.yml",
      "~/.sqlmesh/sqlmesh.yaml",
      "~/.sqlmesh/sqlmesh.yml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": [
          "~/.sqlmesh/config.yaml",
          "~/.sqlmesh/config.yml",
          "~/.sqlmesh/sqlmesh.yaml",
          "~/.sqlmesh/sqlmesh.yml"
        ],
        "match": {
          "key_path": [
            "gateways.*.*.password",
            "gateways.*.*.token",
            "gateways.*.*.access_token",
            "gateways.*.*.private_key",
            "gateways.*.*.private_key_passphrase",
            "gateways.*.*.client_secret",
            "gateways.*.*.keyfile_json",
            "env_vars.*"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "SQLMesh",
    "description": "Plan, run and test a SQLMesh project. Global project options are on the root; init, audit, migrate and the UI are left out.",
    "quality": "ai-draft",
    "base": "fig:sqlmesh",
    "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/sqlmesh.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "plan"
        ],
        "label": "Plan and apply changes",
        "description": "Show the plan for local changes against an environment and optionally apply it.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sqlmesh.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "environment",
            "label": "Environment",
            "type": "string",
            "position": 0,
            "description": "Target environment, default prod.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "create_from",
            "label": "Create from",
            "type": "string",
            "option": [
              "--create-from"
            ],
            "description": "Environment to create the target from if missing.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_tests",
            "label": "Skip tests",
            "type": "boolean",
            "option": [
              "--skip-tests"
            ],
            "description": "Skip tests before generating the plan.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "forward_only",
            "label": "Forward-only",
            "type": "boolean",
            "option": [
              "--forward-only"
            ],
            "description": "Create a plan for forward-only changes.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_gaps",
            "label": "No gaps",
            "type": "boolean",
            "option": [
              "--no-gaps"
            ],
            "description": "Ensure new snapshots have no data gaps.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_backfill",
            "label": "Skip backfill",
            "type": "boolean",
            "option": [
              "--skip-backfill"
            ],
            "description": "Only create a virtual update.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "restate_model",
            "label": "Restate models",
            "type": "string",
            "option": [
              "--restate-model"
            ],
            "description": "Restate data for the models and those downstream.",
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "select_model",
            "label": "Select models",
            "type": "string",
            "option": [
              "--select-model"
            ],
            "description": "Select specific model changes for the plan.",
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_prompts",
            "label": "No prompts",
            "type": "boolean",
            "option": [
              "--no-prompts"
            ],
            "description": "Disable interactive prompts.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "auto_apply",
            "label": "Auto apply",
            "type": "boolean",
            "option": [
              "--auto-apply"
            ],
            "description": "Apply the plan automatically after creation.",
            "effect": "exec",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "description": "Enable verbose output.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "dev",
            "label": "Plan a dev environment",
            "fields": [
              "environment",
              "skip_tests",
              "select_model"
            ],
            "required": [
              "environment"
            ]
          },
          {
            "id": "prod",
            "label": "Plan and apply",
            "set": {
              "no_prompts": [
                true
              ],
              "auto_apply": [
                true
              ]
            },
            "fields": [
              "environment",
              "no_prompts",
              "auto_apply"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "environment",
              "skip_tests",
              "select_model",
              "no_prompts",
              "auto_apply"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "create_from",
              "forward_only",
              "no_gaps",
              "skip_backfill",
              "restate_model",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "run"
        ],
        "label": "Run missing intervals",
        "description": "Evaluate missing intervals for an environment.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sqlmesh.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "environment",
            "label": "Environment",
            "type": "string",
            "position": 0,
            "description": "Target environment, default prod.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run",
            "fields": [
              "environment"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "environment"
            ]
          }
        ]
      },
      {
        "path": [
          "test"
        ],
        "label": "Run unit tests",
        "description": "Run model unit tests.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sqlmesh.ts",
            "license": "MIT"
          }
        ],
        "task": [
          {
            "id": "test",
            "label": "Run tests",
            "fields": [],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": []
          }
        ]
      }
    ]
  }
}
