{
  "description": "Open a database file in the DuckDB shell, or run one SQL command or script and exit with a chosen output format. Server, UI and extension options are not covered.",
  "options": [
    {
      "names": [
        "-c"
      ],
      "description": "Run this SQL and exit.",
      "args": {
        "name": "command",
        "description": "Run this SQL and exit.",
        "isOptional": false
      }
    },
    {
      "names": [
        "-f"
      ],
      "description": "Run this script and exit.",
      "args": {
        "name": "script",
        "description": "Run this script and exit.",
        "isOptional": false,
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-readonly"
      ],
      "description": "Open read-only"
    },
    {
      "names": [
        "-csv"
      ],
      "description": "CSV output"
    },
    {
      "names": [
        "-json"
      ],
      "description": "JSON output"
    },
    {
      "names": [
        "-markdown"
      ],
      "description": "Markdown output"
    },
    {
      "names": [
        "-box"
      ],
      "description": "Box output"
    },
    {
      "names": [
        "-table"
      ],
      "description": "Table output"
    },
    {
      "names": [
        "-header"
      ],
      "description": "Print headers"
    },
    {
      "names": [
        "-noheader"
      ],
      "description": "Omit headers"
    },
    {
      "names": [
        "-separator"
      ],
      "description": "Column separator",
      "args": {
        "name": "separator",
        "isOptional": false
      }
    },
    {
      "names": [
        "-nullvalue"
      ],
      "description": "NULL text",
      "args": {
        "name": "nullvalue",
        "isOptional": false
      }
    },
    {
      "names": [
        "-init"
      ],
      "description": "Used instead of ~/.duckdbrc.",
      "args": {
        "name": "init",
        "description": "Used instead of ~/.duckdbrc.",
        "isOptional": false,
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-safe"
      ],
      "description": "Safe mode"
    }
  ],
  "args": [
    {
      "name": "database",
      "description": "Leave empty for a transient in-memory database.",
      "isOptional": true,
      "template": "filepaths"
    }
  ],
  "name": "duckdb"
}
