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

LevelPath
Global$XDG_CONFIG_HOME/tempify/config.json
Fallback~/.config/tempify/config.json
WorkspaceNearest .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

KeyValuesMeaning
accept_hooksyes, ask, noDefault hook policy
hook_timeout_msInteger ≥ 0Hook timeout in ms (0 = no timeout)
existing_path_behaviorerror, overwrite, skipBehavior 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