Configuration

The CLI reads configuration from a thesis.config.json file in your project root.

Config File

{
  "name": "my-project",
  "version": "1.0.0",
  "server": {
    "port": 3000,
    "host": "localhost"
  },
  "build": {
    "output": "dist",
    "minify": true
  },
  "deploy": {
    "target": "production",
    "region": "us-east-1"
  }
}

Environment Variables

You can override config values with environment variables prefixed with thesis_:

| Variable | Config Path | Description | |----------|------------|-------------| | thesis_PORT | server.port | Server port | | thesis_HOST | server.host | Server host | | thesis_OUTPUT | build.output | Build output directory | | thesis_API_KEY | - | API key for authenticated requests |

Config Precedence

Configuration is resolved in this order (highest priority first):

  1. CLI flags (--port 4000)
  2. Environment variables (thesis_PORT=4000)
  3. Project config file (thesis.config.json)
  4. Default values