Skip to content

Configuration

Leonard Ramminger edited this page Aug 22, 2026 · 1 revision

Configuration

Global and workspace defaults for questions and render behavior.

File paths

Level Path
Global $XDG_CONFIG_HOME/tempify/config.json
Fallback ~/.config/tempify/config.json
Workspace Nearest .tempify/config.json (upward from CWD)

tempify doctor shows detected config paths.

Schema

{
  "defaults": {
    "project_name": "My App",
    "include_ci": false,
    "author": "Team"
  },
  "render": {
    "accept_hooks": "ask",
    "hook_timeout_ms": 30000,
    "existing_path_behavior": "skip"
  }
}

defaults

Key-value pairs for questions. Values must be scalar (string, bool, number).

render

Key Values Meaning
accept_hooks yes, ask, no Default hook policy
hook_timeout_ms Integer ≥ 0 Hook timeout in ms (0 = no timeout)
existing_path_behavior error, overwrite, skip Behavior when target exists

Unknown keys → error on load.

Render config priority

  1. Global config render
  2. Workspace config render
  3. Explicit CLI flags (--accept-hooks, -f, -s, --hook-timeout-ms, …)

Note: Config is a soft default layer, not a policy lockdown. CLI and answers override question defaults.

Example workspace config

.tempify/config.json in project root:

{
  "defaults": {
    "author": "My Team"
  },
  "render": {
    "accept_hooks": "no"
  }
}

See also

Questions & Answers · Hooks (Users) · Render Options

Clone this wiki locally