Skip to content

Config File

Instead of passing the same flags every time, save them in a config file.

Hance checks two locations, in order:

  1. Local: .hancerc.json in the current directory (or any parent directory)
  2. Global: ~/.config/hance/config.json

The first one found wins. CLI flags always override config values.

The config file is a JSON object where keys are flag names (without --):

{
"preset": "portra-400",
"grain-amount": 0.2,
"no-camera-shake": true,
"codec": "h264",
"crf": 20
}

Boolean flags like no-camera-shake should be set to true.

Create a .hancerc.json in your project root to share settings across a team:

{
"preset": "cinestill-800t",
"export": "high"
}

Skip config file loading with:

Terminal window
hance video.mp4 --no-config